Created
June 26, 2020 07:45
-
-
Save ninest/da9a240a33ac80f82ff95a4c39c2d31f to your computer and use it in GitHub Desktop.
Sonic Pi in VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
// .. | |
// all your other keybindings | |
// ... | |
// for sonic pi | |
{ | |
"key": "ctrl+alt+s", | |
"command": "workbench.action.tasks.runTask", | |
"args": "sp-run", | |
"when": "editorLangId == ruby" // limit these keybindings to work in ruby files | |
}, | |
{ | |
"key": "ctrl+alt+d", | |
"command": "workbench.action.tasks.runTask", | |
"args": "sp-stop", | |
"when": "editorLangId == ruby" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
// ... | |
// all your other tasks | |
// ... | |
{ | |
"label": "sp-run", | |
"type": "shell", | |
"command": "cat ${file} | sonic_pi" | |
}, | |
{ | |
"label": "sp-stop", | |
"type": "shell", | |
"command": "sonic_pi stop" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Brilliant thanks so much for the blog post on Using VScode for Sonic Pi, perfect timing :D