Wolfram System Integration with Visual Studio CodeOfficial Visual Studio Code extension for Wolfram Language Features
Syntax HighlightingSupport for the entire Wolfram Language syntax and all built-in functions. SetupLSP 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. SettingsIf 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:
Select A Add a
You may also change the command that is used to start the server:
You may disable Wolfram language server by specifying:
Other SettingsIt is convenient to remove
A color theme that focuses on WL syntax is available.
Experimental SettingsYou 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. TroubleshootingMake 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. |