Installation
The SA VSCode plugin is available in the Visual Studio Marketplace. To install the plugin you can either click on the install button on the plugin page in the Visual Studio Marketplace, or you can install it directly from within Visual Studio Code.
- Open Visual Studio Code.
- Click the Extensions icon in the Activity Bar on the left (or
Ctrl+Shift+X). - Write "sa-vscode" in the search bar.
- Select the sa-vscode extension.
- Click install.
- When the installation is finished, an "SA" button will appear in the Activity Bar on the left.

- Configure the path to the SA Engine binary, see instructions below.
Now you you are ready to start coding OSQL and interact with SA Engine! 😀
Configure the path to the SA Engine binary​
To help VS Code find the SA Engine binary, the path must be configured in one of two ways.
First ensure that you have installed SA Engine for your platform. How you install SA Engine is described in Installing SA Engine.
Option 1: Set the Windows environment variable​
Open the Control Panel and navigate to "Edit the System Environment Variables".
Set the variable SA_ENGINE_HOME to the full path of the sa.engine folder (the folder where you extracted the SA Engine zip file, typically "C:\Users[name]\sa.engine"). Once you have added the full path to $SA_ENGINE_HOME also add $SA_ENGINE_HOME\bin to the PATH environment variable.
Example:
SA_ENGINE_HOME: C:\\Users\my_user\sa.engine
Add to PATH: C:\\Users\my_user\sa.engine\bin
Option 2. Set load_dir in the SA VS Code extension settings​
To access the SA VSCode settings:
- Go to the Extensions tab (
Ctrl+Shift+X) on the Activity Bar - Scroll down to the sa-vscode extension
- Click on the cogwheel and choose "Extension settings"

SA VSCode settings.
To specify which SA Engine binary the VSCode extension should run:
Click "Edit in settings.json" under "Sa Engine: Load_dir" in the extension settings
Write the path to the SA Engine bin folder (the folder where you extracted the SA Engine zip file plus the sub folder
bin\, typically "C:\Users[name]\sa.engine\bin") in"saEngine.load_dir": ""(you need to escape "\" in Windows paths).Example:
//"saEngine.load_dir": "C:\\Users\\my_user\\sa.engine\\bin"
