foo.bar
Foo.bar
~envir
Pdef(\foo
or Ndef(\bar
Download a current develop build of SuperCollider (the extension requires recent changes you may not have) https://supercollider.s3.amazonaws.com/builds/supercollider/supercollider/osx/develop-latest.html https://supercollider.s3.amazonaws.com/builds/supercollider/supercollider/win32/develop-latest.html https://supercollider.s3.amazonaws.com/builds/supercollider/supercollider/win64/develop-latest.html
Download the .vsix file from the latest release: https://github.com/scztt/vscode-supercollider/releases
Install the extension in vscode (from the command palette: "Extensions: Install from VSIX...")
In your user settings (from the command palette: "Preferences: Open User Settings"), search for SuperCollider. Set the following settings:
Supercollider › Sclang: Cmd
The path to your sclang executable (e.g. /Applications/SuperCollider.app/Contents/MacOS/sclang
on mac or C:\Program Files\SuperCollider\sclang.exe
on windows)
Supercollider › Sclang: Conf Yaml
The path to your conf.yaml file - you can find this in the current SuperCollider IDE in Preferences -> Interpreter -> Active Config File. You can also create an empty .yaml
in a location of your choiuce and point to that.
Install the LanguageServer.quark - from the VSCode command palette, choose "SuperCollider: Update LanguageServer.quark". NOTE: Installing the LanguageServer.quark will conflict with using the built-in SCIde. See the note below for a workaround.
Open a project folder containing .scd or .sc files! Most existing IDE commands are available in VSCode, you can find them by searching for "SuperCollider" from the command palette. Some are already mapped to the expecte keyboard shortcuts (e.g. Cmd+Enter and Cmd+Period), some are not (you can use the gear icon next to the command to set keyboard shortcuts).
Clone repository:
git clone --recursive https://github.com/scztt/vscode-supercollider.git
cd vscode-supercollider
Install npm dependencies:
npm install
Build or download the supercollider topic/refactor-com-port
branch:
CI builds: https://github.com/supercollider/supercollider/actions?query=branch%3Atopic%2Frefactor-com-port++ (click the most recent green build, scroll to "Artifacts" to find the builds)
https://github.com/supercollider/supercollider/tree/topic/refactor-com-port
Install LanguageServer.quark
// (in SuperCollider...)
Quarks.install("/path/to/vscode-supercollider/LanaguageServer.quark")
vscode-supercollider
folder in vscode.Run: Build Task -> tsc:build
Debug: Start Debugging
.Preferences: Open Settings (UI)
, search for SuperCollidersclang
process will launch per workspace, any time an .sc
/ .scd
file is opened.Please report bugs or feature requests on the GitHub issues page for the extension: https://github.com/scztt/vscode-supercollider
The LanguageServer Quark provides a Document class that replaces the built-in one that is provided by SCIDE. Unfortunately, both Document classes cannot be installed at once, which means that installing the LanguageServer quark will cause compile errors in SCIDE. To resolve this:
sclang_conf.yaml
file, e.g. sclang_conf_vscode.yaml
- you can find the location in the SCIDE preferences.