Skip to content

Instantly share code, notes, and snippets.

@mattlockyer
Created May 13, 2020 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattlockyer/278a2c42e0706a840052a82cbd935a93 to your computer and use it in GitHub Desktop.
Save mattlockyer/278a2c42e0706a840052a82cbd935a93 to your computer and use it in GitHub Desktop.
Keyboard shortcuts for vs code
[
{
"key": "ctrl+]",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "ctrl+[",
"command": "workbench.action.terminal.focusPrevious"
},
{
"key": "ctrl+v",
"command": "workbench.action.terminal.paste",
"when": "terminalFocus"
},
{
"key": "ctrl+v",
"command": "editor.action.clipboardPasteAction",
"when": "editorTextFocus"
},
{
"key": "alt+q",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "alt+q",
"command": "-workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
/********************************
Macros
********************************/
{
"key": "alt+shift+x",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log("
}
},
{
"key": "alt+shift+c",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "/********************************\n\n********************************/"
}
},
/********************************
Builds
********************************/
{
"key": "alt+e",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "go run .\u000D"
}
},
{
"key": "alt+r",
"command": "workbench.action.terminal.sendSequence",
"when": "terminalFocus",
"args": {
"text": "cargo check\u000D"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment