vscode-supercollider is a SuperCollider extension for your Visual Studio Code. The extension currently supports text highlighting and running in the VS Code terminal. For this extension to work properly, you must have SuperCollider already installed.
Disclaimer: This extension has only been tested on Windows.
- Syntax highlighting
- Running SuperCollider from the VS Code terminal
-
Install the vscode-supercollider extension in VS Code.
-
Install SuperCollider from the SuperCollider website.
-
In VS Code use the command
Preferences: Open Settings (JSON)
. Enter the setting"supercollider.sclangCmd": "[Command to run sclang]"
. This will depend on your operating system, and on the default shell you use within vscode. Examples:
- (Windows, default shell: powershell)
"supercollider.sclangCmd": "& \"C:\\Program Files\\SuperCollider-3.9.3\\sclang.exe\""
- (OSX, default shell: bash)
"supercollider.sclangCmd": "/Applications/SuperCollider/SuperCollider.app/Contents/MacOS/sclang"
-
Open a SuperCollider file (
.scd
). To run useCtrl + Shift + b
. Once your SuperCollider script is running you can kill it withCtrl + .
-
N.B: Since SuperCollider will run code sequentially without waiting for the previous command to finish executing. Make sure any code requring the server is wrapped as follows:
s.waitForBoot{
//Code here
}
- Improved text highlighting
- Auto-complete
- Evaluating individual lines/blocks of code
vscode-supercollider is licensed under the MIT License.