Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SageMath for VScodeNew to Visual Studio Code? Get it now.
SageMath for VScode

SageMath for VScode

SeanDictionary

|
23 installs
| (0) | Free
An extension for SageMath support in VS Code. Includes highighting and run
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SageMath For VScode

Release Platform License GitHub repo size GitHub last commit Python

English | 中文

What is this?

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

Changelog

See CHANGELOG.md for details.

Usage

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

  1. Download the .vsix file from latest pre-release or release from the Releases page
  2. 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

  1. Open Visual Studio Code
  2. 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.
  3. Search for "SageMath for VScode"
  4. Click on the "Install" button for the extension named "SageMath for VScode" by SeanDictionary.
  5. After installation, you may need to reload the window or restart Visual Studio Code for the extension to take effect.
  6. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft