vscode-cythonCython Language Extension for VS CodeFeatures
AboutThis extension provides syntax highlighting and a Static Syntax checker for the Cython language. Cython is a superset of Python with it's own C-styled syntax mixed with Python syntax. The static checker is based on Pyright and will only support Cython/Python syntax version 3.0 and above. This extension uses the configured Python interpreter/venv path from the Commandscython.compileCurrentFileRuns Availability
cython.createTypeStubExperimental. Create a typestub (.pyi) file for current/selected .pyx file. These files can be used within Python for static typing. Availability
Limitations
Possible featuresThese features would be nice to have but are not implemented.
FAQ
IssuesPlease report any issues in this repo. InstallingInstall with VS CodeInstall normally through the extensions tab. Install from source
Building source
Building vsix packageAlternatively, a vsix package can be built:
DevelopmentSetupTo setup development environment:
DebuggingRun the This will build the language server and the source code will be watched for changes You can then run the launch task: After the extension has been launched run the launch task Syntax highlighting changesAny changes should be made to The syntax file will need to be re-generated for VS Code to see changes. To re-generate syntax file run:
Language Server (Cyright) DevelopmentPull requests should be created under the Cyright Repository. There is a 'Watch Extension' task to aid in development. The language server can be debugged by launching the 'Extension' launch target and then launching the 'Attach Server' target. |