Skip to content

Instantly share code, notes, and snippets.

@discosultan
Created September 18, 2017 09:58
Show Gist options
  • Save discosultan/6e1f2a9cc27f85f817bdb67b6c1b1131 to your computer and use it in GitHub Desktop.
Save discosultan/6e1f2a9cc27f85f817bdb67b6c1b1131 to your computer and use it in GitHub Desktop.
VSCode keybindings to execute Rust commands
// Place your key bindings in this file to overwrite the defaults
[{
"key": "ctrl+shift+t",
"command": "workbench.action.tasks.runTask",
"args": "cargo test",
"when": "editorTextFocus && editorLangId == rust"
},{
"key": "ctrl+shift+r",
"command": "workbench.action.tasks.runTask",
"args": "cargo run",
"when": "editorTextFocus && editorLangId == rust"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment