Use Sienna in VSCode
Prerequisites
Start by completing the install steps for Julia and Sienna on the basic installation page. Then:
Step 1: Install Visual Studio Code
- Download from VSCode.
- Install following the on-screen instructions.
- Launch VSCode after installation.
Step 2: Configure Julia in VSCode
Open VSCode, go to Extensions (
Ctrl+Shift+Xon Windows,Cmd+Shift+Xon Mac).Search for and install the Julia extension.
Set Julia's path:
- Open Command Palette (
Ctrl+Shift+Pon Windows,Cmd+Shift+Pon Mac). - Search:
Settings→Julia: Executable Path. - Provide the full path to your
juliaexecutable (julia.exeon Windows,juliaon Mac and Linux).
- Open Command Palette (
Step 3: Start Julia REPL in VSCode
- Open the Command Palette (
Ctrl+Shift+P). - Type
Julia: Start REPLand press Enter to launch it.
Test you have access to your Sienna installation:
using PowerSystemsTroubleshooting
- Path Issues: Verify paths in VSCode’s settings.
- Package Issues: Ensure Julia is up-to-date and has internet access.
- Restart Required: If REPL does not load, restart VSCode.