copy-pasting from the instructions under the Julia extension:
Getting started
Installing Julia/VS Code/VS Code Julia extension
- Install Julia for your platform: Download Julia
- Install VS Code for your platform: Download Visual Studio Code - Mac, Linux, Windows At the end of this step you should be able to start VS Code.
- Choose
Installin the VS Code Marketplace; or manually install with:- Start VS Code.
- Inside VS Code, go to the extensions view either by executing the
View: Show Extensionscommand (click View->Command Paletteā¦) or by clicking on the extension icon on the left side of the VS Code window.- In the extensions view, simply search for the term
juliain the marketplace search box, then select the extension namedJuliaand click the install button. You might have to restart VS Code after this step.Configure the Julia extension
If you have installed Julia into a standard location on Mac or Windows, or if the Julia binary is on your
PATH, the Julia VS Code extension should automatically find your Julia installation and you should not need to configure anything.If the extension does not find your Julia installation automatically, or if you want to use a different Julia installation than the default one, you can set the
julia.executablePathto point to the Julia executable that the extension should use. In that case the extension will always use that version of Julia. To edit your configuration settings, execute thePreferences: Open User Settingscommand (you can also access it via the menuFile->Preferences->Settings), and then make sure your user settings include thejulia.executablePathsetting. The format of the string should follow your platform specific conventions, and be aware that the backlash\is the escape character in JSON, so you need to use\\as the path separator character on Windows.