Skip to content

Instantly share code, notes, and snippets.

@owenbutler
Created March 21, 2023 22:31
Show Gist options
  • Select an option

  • Save owenbutler/30b7d9b528c879ad0972e092e7480c43 to your computer and use it in GitHub Desktop.

Select an option

Save owenbutler/30b7d9b528c879ad0972e092e7480c43 to your computer and use it in GitHub Desktop.
Small keyboard shortcuts to run Dragonruby, and build the distribution, vscode
// To get to your user keybindings, you can use CTRL+Shift+P then search for:
// "Preferences: Open Keyboard Shortcuts (JSON)"
// this should open up this empty json file.
[
{
"key": "alt+r",
"args": "rundr",
"command": "workbench.action.tasks.runTask",
},
{
"key": "alt+b",
"args": "build_dr",
"command": "workbench.action.tasks.runTask",
}
]
// Place this in a .vscode/tasks.json file
// The .vscode directory is something that you need to create per project
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "rundr",
"type": "shell",
"command": ".\\dragonruby.exe",
"presentation": {
"reveal": "never",
}
},
{
"label": "build_dr",
"type": "shell",
"command": ".\\dragonruby-publish.exe --only-package",
"presentation": {
"reveal": "always",
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment