It's a extension for SageMath that provides syntax highlighting, code execution, and other features for Visual Studio Code.
I wish to make it a full-featured SageMath extension, especially for SageMath's LSP (Language Server Protocol) support. But obviously it'll be a hard work. Welcome to contribute and suggest!
Features
Syntax highlighting for SageMath code
Basic Semantic highlighting for SageMath code (there are still some bugs, you can see known bugs file for details)
Support F5, command and buttom to run SageMath file
Support hotkey for line comment and block comment
Support conda environment switching
Semantic highlighting rely on perdefinition.py for SageMath Std Library, you can modify this file to add more semantic highlighting support
The extension has released on the Visual Studio Code Marketplace yet. You can install it from GitHub or the Visual Studio Code Marketplace.
From GitHub
Download the .vsix file from latest pre-release or release from the Releases page
Drag the .vsix file into the Visual Studio Code window, or use the command palette (Ctrl+Shift+P) and type Extensions: Install from VSIX..., then select the downloaded .vsix file.
From VScode Marketplace
Open Visual Studio Code
Go to Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing Ctrl+Shift+X.
Search for "SageMath for VScode"
Click on the "Install" button for the extension named "SageMath for VScode" by SeanDictionary.
After installation, you may need to reload the window or restart Visual Studio Code for the extension to take effect.
Open a SageMath file (with .sage extension) to start using the extension.
Contributes
If you want to contribute to this project, you can fork the repository and create a pull request. You can also report issues or suggest features by opening an issue on the GitHub repository.
License
This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.