jatinchowdhury18 / vscode-supercollider

A VS Code extension for the SuperCollider language
MIT License
9 stars 5 forks source link

SuperCollider Extension for VS Code

license

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.

Features

Instructions

  1. Install the vscode-supercollider extension in VS Code.

  2. Install SuperCollider from the SuperCollider website.

  3. 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"
  4. Open a SuperCollider file (.scd). To run use Ctrl + Shift + b. Once your SuperCollider script is running you can kill it with Ctrl + .

  5. 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
    }

Future Improvements

License

vscode-supercollider is licensed under the MIT License.