Skip to content

Instantly share code, notes, and snippets.

@ivanoats
Created October 19, 2018 20:42
Show Gist options
  • Save ivanoats/99f6cf17a47f442b8dd0c551d16d6792 to your computer and use it in GitHub Desktop.
Save ivanoats/99f6cf17a47f442b8dd0c551d16d6792 to your computer and use it in GitHub Desktop.
Visual Studio Code Keyboard Shortcuts customization
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "f1",
"command": "extension.dash.specific",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+r",
"command": "workbench.action.tasks.runTask",
"args": "start:dev",
"when": "editorTextFocus"
},
{
"key": "cmd+left",
"command": "-workbench.action.terminal.moveToLineStart",
"when": "terminalFocus"
},
{
"key": "cmd+right",
"command": "-workbench.action.terminal.moveToLineEnd",
"when": "terminalFocus"
}
// Toggle between terminal and editor focus
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus"
},
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "cmd-k cmd-k",
"command": "workbench.action.terminal.clear",
"when": "terminalFocus"
},
{
"key":"ctrl+k",
"command": "deleteAllRight",
"when": "editorTextFocus && !editorReadonly"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment