DSastre / vscode-supercollider

A VS Code extension for the SuperCollider language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • Syntax highlighting
  • Running SuperCollider from the VS Code terminal

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

  2. 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

  • Improved text highlighting
  • Auto-complete
  • Evaluating individual lines/blocks of code

License

vscode-supercollider is licensed under the MIT License.

About

A VS Code extension for the SuperCollider language

License:MIT License


Languages

Language:JavaScript 100.0%