Pyrefly in the IDE
Pyrefly seamlessly integrates into IDEs with our VSCode and OpenVSX extensions. For other editors like vim/emacs, see other editors.
Quick start
- Install the Pyrefly extension from the VSCode marketplace or OpenVSX
- Open a python file and the extension will activate
Features
The Pyrefly extension provides:
- Inline type errors matching the Pyrefly command-line
- Types shown inline and on hover
- Go-to definition
- Autocomplete / intellisense
Customization
By default, Pyrefly should work in the IDE with no configuration necessary. But to ensure your project is set up properly, see configurations.
The following configuration options are IDE-specific:
python.pyrefly.disableLanguageServices
[boolean: false]: by default, Pyrefly will provide both type errors and other language features like go-to definition, intellisense, hover, etc. Enable this option to keep type errors from Pyrefly but use VSCode's Python extension for everything else.
If the project configuration does not specify the Python interpreter, Pyrefly will use the interpreter selected in VSCode.
Issues?
If you experience issues with the Pyrefly extension, please create an issue on github.
Other Editors
Support for other editors is community-driven. If you would like to set this up, please contribute.