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.
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:
"supercollider.sclangCmd": "& \"C:\\Program Files\\SuperCollider-3.9.3\\sclang.exe\""
"supercollider.sclangCmd": "/Applications/SuperCollider/SuperCollider.app/Contents/MacOS/sclang"
Open a SuperCollider file (.scd
). To run use
Ctrl + Shift + b
. Once your SuperCollider script
is running you can kill it with Ctrl + .
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
}
vscode-supercollider is licensed under the MIT License.