Skip to content

Instantly share code, notes, and snippets.

@hugsy
Created September 19, 2022 16:44
Show Gist options
  • Save hugsy/e4786efbc21f2e65bb4faae0fe634fbe to your computer and use it in GitHub Desktop.
Save hugsy/e4786efbc21f2e65bb4faae0fe634fbe to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+x ctrl+f",
"command": "workbench.action.files.openFile"
},
{
"key": "ctrl+o",
"command": "-workbench.action.files.openFile"
},
{
"key": "ctrl+shift+-",
"command": "undo",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+z",
"command": "-undo",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+x ctrl+c",
"command": "workbench.action.closeWindow"
},
{
"key": "ctrl+shift+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "ctrl+x k",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "ctrl+shift+]",
"command": "-editor.unfold",
"when": "editorTextFocus"
},
{
"key": "ctrl+q ctrl+o",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+0",
"command": "-editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+q ctrl+p",
"command": "editor.unfoldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+j",
"command": "-editor.unfoldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+.",
"command": "C_Cpp.GoToDeclaration",
"when": "editorTextFocus && editorLangId == 'c'"
},
{
"key": "ctrl+f12",
"command": "-C_Cpp.GoToDeclaration",
"when": "editorTextFocus && editorLangId == 'c'"
},
{
"key": "shift+alt+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "alt+.",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "-editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+k",
"command": "emacs.C-k",
"when": "editorTextFocus"
},
{
"key": "ctrl+k",
"command": "-emacs.C-k",
"when": "editorTextFocus"
},
{
"key": "ctrl+q",
"command": "-workbench.action.quit"
},
{
"key": "ctrl+down",
"command": "spaceBlockJumper.moveDown"
},
{
"key": "ctrl+up",
"command": "spaceBlockJumper.moveUp"
},
{
"key": "ctrl+shift+down",
"command": "spaceBlockJumper.selectDown"
},
{
"key": "ctrl+shift+up",
"command": "spaceBlockJumper.selectUp"
},
{
"key": "alt+;",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+;",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+;",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+j",
"command": "-workbench.action.togglePanel"
},
{
"key": "ctrl+j",
"command": "-closeFindWidget",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "ctrl+j",
"command": "-emacs.C-j",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+j",
"command": "deleteAllLeft"
},
{
"key": "ctrl+k",
"command": "deleteAllRight"
},
{
"key": "ctrl+x n",
"command": "workbench.action.files.newUntitledFile"
},
{
"key": "alt+u",
"command": "editor.action.transformToUppercase",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+x ctrl+u",
"command": "-editor.action.transformToUppercase",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+l",
"command": "editor.action.transformToLowercase",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+x ctrl+l",
"command": "-editor.action.transformToLowercase",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+c",
"command": "editor.action.transformToTitlecase"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+down",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "shift+alt+left",
"command": "workbench.action.focusLeftGroup"
},
{
"key": "ctrl+k ctrl+left",
"command": "-workbench.action.focusLeftGroup"
},
{
"key": "shift+alt+left",
"command": "workbench.action.focusRightGroup"
},
{
"key": "ctrl+k ctrl+right",
"command": "-workbench.action.focusRightGroup"
},
{
"key": "ctrl+k ctrl+up",
"command": "-workbench.action.focusAboveGroup"
},
{
"key": "ctrl+b",
"command": "-emacs.cursorLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+b",
"command": "-emacs.cursorLeft",
"when": "terminalFocus"
},
{
"key": "ctrl+n",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+m",
"command": "workbench.action.output.toggleOutput"
},
{
"key": "ctrl+shift+=",
"command": "workbench.action.increaseViewSize"
},
{
"key": "ctrl+shift+-",
"command": "workbench.action.decreaseViewSize"
},
{
"key": "ctrl+b",
"command": "-markdown.extension.editing.toggleBold",
"when": "editorTextFocus && !editorReadonly && editorLangId == 'markdown'"
},
{
"key": "ctrl+x o",
"command": "editor.foldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+0",
"command": "-editor.foldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+x p",
"command": "editor.unfoldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+j",
"command": "-editor.unfoldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+o",
"command": "editor.fold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+shift+oem_4",
"command": "-editor.fold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+p",
"command": "editor.unfoldRecursively",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+oem_6",
"command": "-editor.unfoldRecursively",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+b",
"command": "-closeFindWidget",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "ctrl+alt+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "shift+alt+end",
"command": "editor.action.addCursorsToBottom"
},
{
"key": "shift+alt+home",
"command": "editor.action.addCursorsToTop"
},
{
"key": "ctrl+shift+win+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+win+up",
"command": "editor.action.insertCursorAbove"
},
{
"key": "f11",
"command": "editor.action.revealDeclaration"
},
{
"key": "ctrl+a",
"command": "-list.selectAll",
"when": "listFocus && listSupportsMultiselect && !inputFocus"
},
{
"key": "ctrl+a",
"command": "-closeFindWidget",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "ctrl+; a",
"command": "-testing.runAll"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment