Light Pyrefly is a lightweight Python semantic highlighting extension for Visual Studio Code. It provides beautiful, context-aware syntax coloring without the overhead of a full type checker or LSP server.
Features
Fast and lightweight semantic token provider.
Context-aware coloring for variables, classes, methods, and built-in Python types.
Completely standalone - does not require Python language servers (like Pylance or Jedi) to function.
Works perfectly for quick scripts, large files, or environments where a full language server is too heavy.
Custom fallback color themes tailored for Python highlighting.
Requirements
Visual Studio Code version 1.75.0 or higher.
A theme that supports semantic highlighting.
Extension Settings
This extension contributes the following settings:
lightPyrefly.enabled: Enable or disable the Light Pyrefly semantic highlighting. (Default: true)
Installation
You can install this extension directly from the Visual Studio Marketplace by searching for "Light Pyrefly" or by downloading the .vsix package and installing it manually.