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!
- Basic highlighting for SageMath code
- Support F5, command and buttom to run SageMath file
- Support hotkey for line comment and block comment
- Support conda environment switching
- Remove the generated
.pyfile after running SageMath code
Other features are supported by python package sage-lsp
See CHANGELOG.md for details.
The extension has released on the Visual Studio Code Marketplace yet. You can install it from GitHub or the Visual Studio Code Marketplace.
- Download the
.vsixfile from latest pre-release or release from the Releases page - Drag the
.vsixfile into the Visual Studio Code window, or use the command palette (Ctrl+Shift+P) and typeExtensions: Install from VSIX..., then select the downloaded.vsixfile.
- 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
.sageextension) to start using the extension.
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. See CONTRIBUTING.md for more details.
This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.