Wolfram System Integration with Visual Studio Code
Official Visual Studio Code extension for Wolfram Language
Developing Wolfram Language Code in Other Editors and IDEs with LSP from WTC 2021: Watch Video (youtube)
Support for the entire Wolfram Language syntax and all built-in functions.
LSP functionality uses a Wolfram kernel to run as a language server.
This requires Wolfram System 12.1 or higher.
The Wolfram Language extension depends on LSPServer paclet to provide LSP functionality.
Install LSPServer paclet and its dependencies by running this Wolfram Language code:
If properly setup, you should have syntax highlighting and linting of Wolfram Language
Test this by typing this into a new
You should see warnings about duplicate clauses.
If you have Wolfram System installed in the default location on your system, you may not have to change any settings.
If Wolfram System is not in the default location, then specify the actual location:
Open the Command Palette
Enter the command:
You may also change the command that is used to start the server:
You may disable Wolfram language server by specifying:
It is convenient to remove
A color theme that focuses on WL syntax is available.
You can enable experimental settings. These are not supported.
To use semantic tokens, a theme that has semantic highlighting enabled must be used, such as BrentonWL.
Make sure that the paclets can be found on your system:
If the kernel cannot start, then check Output view and open the Wolfram Language Error Report output channel for more information.