Skip to content

Instantly share code, notes, and snippets.

@rob3c
Created August 29, 2016 22:32
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 rob3c/d99675fdef2f10707970cb6f39ffaa0f to your computer and use it in GitHub Desktop.
Save rob3c/d99675fdef2f10707970cb6f39ffaa0f to your computer and use it in GitHub Desktop.
Visual Studio Code (vscode) custom key bindings
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+k f", "command": "" }, // avoid accident hitting f instead of h
{ "key": "ctrl+k h", "command": "workbench.action.moveActiveEditorLeft" },
{ "key": "ctrl+k l", "command": "workbench.action.moveActiveEditorRight" },
{ "key": "ctrl+w", "command": "" }, // disable
{ "key": "ctrl+numpad_add", "command": "editor.unfold",
"when": "editorFocus" },
{ "key": "ctrl+numpad_subtract", "command": "editor.fold",
"when": "editorFocus" },
{ "key": "ctrl+shift+numpad_add", "command": "editor.unfoldAll",
"when": "editorFocus" },
{ "key": "ctrl+shift+numpad_subtract", "command": "editor.foldAll",
"when": "editorFocus" },
{ "key": "ctrl+down", "command": "workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible" },
{ "key": "ctrl+up", "command": "workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible" }
, { "key": "ctrl+shift+q", "command": "workbench.files.action.showActiveFileInExplorer" }
, { "key": "ctrl+right", "command": "cursorWordStartRight",
"when": "editorTextFocus" }
, { "key": "ctrl+shift+right", "command": "cursorWordStartRightSelect",
"when": "editorTextFocus" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment