Last active
July 22, 2026 04:15
-
-
Save rob3c/d99675fdef2f10707970cb6f39ffaa0f to your computer and use it in GitHub Desktop.
Visual Studio Code (vscode) custom key bindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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": "shift+ctrl+space", "command": "editor.action.triggerParameterHints", | |
| "when": "editorHasSignatureHelpProvider && editorTextFocus" }, | |
| { "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+pageup", "command": "editorScroll", "when": "editorTextFocus", | |
| "args": { "to": "up", "by": "line", "revealCursor": true } }, | |
| { "key": "ctrl+pagedown", "command": "editorScroll", "when": "editorTextFocus", | |
| "args": { "to": "down", "by": "line", "revealCursor": true } }, | |
| { "key": "ctrl+shift+q", "command": "workbench.files.action.showActiveFileInExplorer" }, | |
| { "key": "ctrl+right", "command": "cursorWordStartRight", | |
| "when": "editorTextFocus" }, | |
| { "key": "ctrl+shift+right", "command": "cursorWordStartRightSelect", | |
| "when": "editorTextFocus" }, | |
| { "key": "ctrl+f4", "command": "workbench.action.closeActiveEditor" }, | |
| { | |
| "key": "ctrl+shift+f11", | |
| "command": "workbench.action.evenEditorWidths", | |
| "when": "editorTextFocus"}, | |
| { | |
| "key": "cmd+f5", | |
| "command": "cmake.debugTarget", | |
| "when": "!inDebugMode" | |
| }, | |
| { | |
| "key": "ctrl+f5", | |
| "command": "-cmake.debugTarget", | |
| "when": "!inDebugMode" | |
| }, | |
| { | |
| "key": "shift+f5", | |
| "command": "-cmake.launchTarget" | |
| }, | |
| { | |
| "key": "ctrl+shift+c", | |
| "command": "-workbench.action.terminal.openNativeConsole", | |
| "when": "!terminalFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+c", | |
| "command": "workbench.action.terminal.openNativeConsole" | |
| }, | |
| { | |
| "key": "ctrl+shift+q", | |
| "command": "-workbench.action.quickOpenNavigatePreviousInViewPicker", | |
| "when": "inQuickOpen && inViewsPicker" | |
| }, | |
| { | |
| "key": "ctrl+f11", | |
| "command": "workbench.action.toggleMaximizedPanel", | |
| "when": "panelFocus" | |
| }, | |
| { | |
| "key": "ctrl+e", | |
| "command": "-workbench.action.quickOpen" | |
| }, | |
| { | |
| "key": "ctrl+f11", | |
| "command": "workbench.action.toggleMaximizeEditorGroup", | |
| "when": "!panelFocus && (maximizedEditorGroup || multipleEditorGroups)" | |
| }, | |
| { | |
| "key": "ctrl+'", | |
| "command": "workbench.action.terminal.toggleTerminal", | |
| "when": "terminal.active" | |
| }, | |
| { | |
| "key": "ctrl+`", | |
| "command": "-workbench.action.terminal.toggleTerminal", | |
| "when": "terminal.active" | |
| }, | |
| { | |
| "key": "ctrl+shift+'", | |
| "command": "workbench.action.terminal.new", | |
| "when": "terminalProcessSupported || terminalWebExtensionContributedProfile" | |
| }, | |
| { | |
| "key": "ctrl+shift+`", | |
| "command": "-workbench.action.terminal.new", | |
| "when": "terminalProcessSupported || terminalWebExtensionContributedProfile" | |
| }, | |
| { | |
| "key": "alt+left", | |
| "command": "workbench.action.navigateBack", | |
| "when": "canNavigateBack" | |
| }, | |
| { | |
| "key": "ctrl+alt+-", | |
| "command": "-workbench.action.navigateBack", | |
| "when": "canNavigateBack" | |
| }, | |
| { | |
| "key": "alt+f12", | |
| "command": "editor.action.peekDefinition", | |
| "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
| }, | |
| { | |
| "key": "ctrl+shift+f10", | |
| "command": "-editor.action.peekDefinition", | |
| "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
| }, | |
| { | |
| "key": "alt+right", | |
| "command": "workbench.action.navigateForward", | |
| "when": "canNavigateForward" | |
| }, | |
| { | |
| "key": "ctrl+shift+-", | |
| "command": "-workbench.action.navigateForward", | |
| "when": "canNavigateForward" | |
| }, | |
| { | |
| "key": "f6", | |
| "command": "workbench.action.tasks.build", | |
| "when": "taskCommandsRegistered" | |
| }, | |
| { | |
| "key": "ctrl+shift+b", | |
| "command": "-workbench.action.tasks.build", | |
| "when": "taskCommandsRegistered" | |
| }, | |
| { | |
| "key": "f6", | |
| "command": "-workbench.action.debug.pause", | |
| "when": "debugState == 'running'" | |
| }, | |
| { | |
| "key": "f6", | |
| "command": "-workbench.action.focusNextPart" | |
| }, | |
| { | |
| "key": "shift+enter", | |
| "command": "-python.execSelectionInTerminal", | |
| "when": "editorTextFocus && !findInputFocussed && !isCompositeNotebook && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" | |
| }, | |
| { | |
| "key": "shift+enter", | |
| "command": "-python.execInREPL", | |
| "when": "config.python.REPL.sendToNativeREPL && editorTextFocus && !isCompositeNotebook && !jupyter.ownsSelection && !notebookEditorFocused && editorLangId == 'python'" | |
| }, | |
| { | |
| "key": "ctrl+down", | |
| "command": "merge.goToNextUnhandledConflict", | |
| "when": "isMergeEditor" | |
| }, | |
| { | |
| "key": "ctrl+up", | |
| "command": "merge.goToPreviousUnhandledConflict", | |
| "when": "isMergeEditor" | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment