Skip to content

Instantly share code, notes, and snippets.

@hectorh30
Created October 7, 2024 15:42
Show Gist options
  • Save hectorh30/110a935dd03b8a400b408be5f8a3e3c1 to your computer and use it in GitHub Desktop.
Save hectorh30/110a935dd03b8a400b408be5f8a3e3c1 to your computer and use it in GitHub Desktop.
VSCode shortcuts json
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+alt+p",
"command": "projectManager.listProjects"
},
{
"key": "shift+alt+p",
"command": "-projectManager.listProjects"
},
{
"key": "alt+2",
"command": "-workbench.action.openEditorAtIndex2"
},
{
"key": "alt+2",
"command": "workbench.action.splitEditorToBelowGroup"
},
{
"key": "alt+3",
"command": "-workbench.action.openEditorAtIndex3"
},
{
"key": "alt+3",
"command": "workbench.action.splitEditorToRightGroup"
},
{
"key": "alt+down",
"command": "-showNextParameterHint",
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-notebook.cell.moveDown",
"when": "notebookEditorFocused && !inputFocus"
},
{
"key": "alt+down",
"command": "-editor.action.pageDownHover",
"when": "editorHoverFocused"
},
{
"key": "alt+down",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+down",
"command": "-history.showNext",
"when": "historyNavigationForwardsEnabled && historyNavigationWidgetFocus && !suggestWidgetVisible"
},
{
"key": "alt+down",
"command": "-scm.forceViewNextCommit",
"when": "scmRepository"
},
{
"key": "alt+down",
"command": "workbench.action.focusBelowGroup"
},
{
"key": "ctrl+k ctrl+down",
"command": "-workbench.action.focusBelowGroup"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-notebook.cell.moveUp",
"when": "notebookEditorFocused && !inputFocus"
},
{
"key": "alt+up",
"command": "-editor.action.pageUpHover",
"when": "editorHoverFocused"
},
{
"key": "alt+up",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+up",
"command": "-history.showPrevious",
"when": "historyNavigationBackwardsEnabled && historyNavigationWidgetFocus && !suggestWidgetVisible"
},
{
"key": "alt+up",
"command": "-scm.forceViewPreviousCommit",
"when": "scmRepository"
},
{
"key": "alt+up",
"command": "-showPrevParameterHint",
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
},
{
"key": "alt+left",
"command": "-workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+left",
"command": "-cursorWordStartLeft",
"when": "editorTextFocus"
},
{
"key": "alt+left",
"command": "-workbench.action.quickInputBack",
"when": "inQuickOpen"
},
{
"key": "ctrl+pageup",
"command": "workbench.action.focusLeftGroup"
},
{
"key": "ctrl+k ctrl+left",
"command": "-workbench.action.focusLeftGroup"
},
{
"key": "alt+right",
"command": "-workbench.action.navigateForward",
"when": "canNavigateForward"
},
{
"key": "alt+right",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+right",
"command": "-cursorWordEndRight",
"when": "editorTextFocus"
},
{
"key": "alt+right",
"command": "workbench.action.focusRightGroup"
},
{
"key": "ctrl+k ctrl+right",
"command": "-workbench.action.focusRightGroup"
},
{
"key": "alt+up",
"command": "workbench.action.focusAboveGroup"
},
{
"key": "ctrl+k ctrl+up",
"command": "-workbench.action.focusAboveGroup"
},
{
"key": "ctrl+shift+c",
"command": "-workbench.action.terminal.copySelection",
"when": "terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected"
},
{
"key": "ctrl+shift+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "ctrl+shift+c",
"command": "editor.action.commentLine",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+oem_2",
"command": "-editor.action.commentLine",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+win+w",
"command": "editor.action.toggleWordWrap"
},
{
"key": "alt+z",
"command": "-editor.action.toggleWordWrap"
},
{
"key": "ctrl+l",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{
"key": "ctrl+l",
"command": "-expandLineSelection",
"when": "editorFocus"
},
{
"key": "ctrl+l",
"command": "-notebook.centerActiveCell",
"when": "notebookEditorFocused"
},
{
"key": "ctrl+l",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "ctrl+oem_5",
"command": "-workbench.action.splitEditor"
},
{
"key": "ctrl+g",
"command": "-workbench.action.terminal.goToRecentDirectory",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+g",
"command": "workbench.action.gotoSymbol"
},
{
"key": "ctrl+shift+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "ctrl+shift+a",
"command": "-notification.acceptPrimaryAction",
"when": "notificationToastsVisible"
},
{
"key": "ctrl+shift+a",
"command": "workbench.action.addRootFolder"
},
{
"key": "ctrl+shift+alt+n",
"command": "workbench.action.duplicateWorkspaceInNewWindow"
},
{
"key": "ctrl+shift+alt+f",
"command": "editor.fold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+shift+oem_4",
"command": "-editor.fold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+shift+alt+u",
"command": "editor.unfold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+shift+oem_6",
"command": "-editor.unfold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+shift+alt+pagedown",
"command": "-cursorColumnSelectPageDown",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+pagedown",
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "f3",
"command": "-editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "ctrl+shift+alt+pageup",
"command": "-cursorColumnSelectPageUp",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+pageup",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "shift+f3",
"command": "-editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "ctrl+shift+f",
"command": "-workbench.action.findInFiles"
},
{
"key": "ctrl+shift+f",
"command": "-workbench.action.terminal.searchWorkspace",
"when": "terminalFocus && terminalProcessSupported && terminalTextSelected"
},
{
"key": "ctrl+shift+f",
"command": "-workbench.view.search",
"when": "workbench.view.search.active && neverMatch =~ /doesNotMatch/"
},
{
"key": "ctrl+shift+u",
"command": "-workbench.action.output.toggleOutput",
"when": "workbench.panel.output.active"
},
{
"key": "ctrl+pageup",
"command": "-workbench.action.previousEditor"
},
{
"key": "ctrl+pagedown",
"command": "-workbench.action.nextEditor"
},
{
"key": "ctrl+pageup",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+pagedown",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",
"when": "!activeEditorGroupEmpty"
},
{
"key": "ctrl+shift+tab",
"command": "-workbench.action.quickOpenLeastRecentlyUsedEditorInGroup",
"when": "!activeEditorGroupEmpty"
},
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+1",
"command": "workbench.action.openEditorAtIndex1"
},
{
"key": "alt+1",
"command": "-workbench.action.openEditorAtIndex1"
},
{
"key": "ctrl+2",
"command": "-workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+2",
"command": "workbench.action.openEditorAtIndex2"
},
{
"key": "ctrl+3",
"command": "-workbench.action.focusThirdEditorGroup"
},
{
"key": "ctrl+3",
"command": "workbench.action.openEditorAtIndex3"
},
{
"key": "ctrl+4",
"command": "-workbench.action.focusFourthEditorGroup"
},
{
"key": "ctrl+4",
"command": "workbench.action.openEditorAtIndex4"
},
{
"key": "alt+4",
"command": "-workbench.action.openEditorAtIndex4"
},
{
"key": "ctrl+5",
"command": "-workbench.action.focusFifthEditorGroup"
},
{
"key": "ctrl+6",
"command": "-workbench.action.focusSixthEditorGroup"
},
{
"key": "ctrl+7",
"command": "-workbench.action.focusSeventhEditorGroup"
},
{
"key": "ctrl+8",
"command": "-workbench.action.focusEighthEditorGroup"
},
{
"key": "ctrl+5",
"command": "workbench.action.openEditorAtIndex5"
},
{
"key": "alt+5",
"command": "-workbench.action.openEditorAtIndex5"
},
{
"key": "ctrl+6",
"command": "workbench.action.openEditorAtIndex6"
},
{
"key": "alt+6",
"command": "-workbench.action.openEditorAtIndex6"
},
{
"key": "ctrl+7",
"command": "workbench.action.openEditorAtIndex7"
},
{
"key": "alt+7",
"command": "-workbench.action.openEditorAtIndex7"
},
{
"key": "ctrl+8",
"command": "workbench.action.openEditorAtIndex8"
},
{
"key": "alt+8",
"command": "-workbench.action.openEditorAtIndex8"
},
{
"key": "ctrl+9",
"command": "-workbench.action.lastEditorInGroup"
},
{
"key": "ctrl+9",
"command": "workbench.action.openEditorAtIndex9"
},
{
"key": "alt+9",
"command": "-workbench.action.openEditorAtIndex9"
},
{
"key": "ctrl+alt+win+up",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "shift+alt+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+win+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "shift+alt+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+c",
"command": "copyFilePath",
"when": "!editorFocus"
},
{
"key": "shift+alt+c",
"command": "-copyFilePath",
"when": "!editorFocus"
},
{
"key": "ctrl+shift+alt+c",
"command": "copyFilePath",
"when": "editorFocus"
},
{
"key": "shift+alt+c",
"command": "-copyFilePath",
"when": "editorFocus"
},
{
"key": "ctrl+k ctrl+n",
"command": "-git.unstageSelectedRanges",
"when": "isInDiffEditor && !operationInProgress"
},
{
"key": "ctrl+k ctrl+n",
"command": "workbench.action.toggleAuxiliaryBar"
},
{
"key": "ctrl+alt+b",
"command": "-workbench.action.toggleAuxiliaryBar"
},
{
"key": "alt+f5",
"command": "workbench.action.editor.nextChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "alt+f5",
"command": "-workbench.action.editor.nextChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "shift+alt+f5",
"command": "workbench.action.editor.previousChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "shift+alt+f5",
"command": "-workbench.action.editor.previousChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "alt+down",
"command": "workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
},
{
"key": "alt+f5",
"command": "-workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
},
{
"key": "alt+up",
"command": "workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible"
},
{
"key": "shift+alt+f5",
"command": "-workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible"
},
{
"key": "ctrl+shift+g c",
"command": "-gitlens.showQuickCommitFileDetails",
"when": "editorTextFocus && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g d",
"command": "git.openChange"
},
{
"key": "ctrl+shift+g ctrl+shift+d",
"command": "git.openAllChanges"
},
{
"key": "ctrl+oem_5",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+shift+d",
"command": "-editor.action.copyLinesDownAction",
"when": "editorFocus"
},
{
"key": "f8",
"command": "workbench.action.debug.continue",
"when": "debugState == 'stopped'"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "debugState == 'stopped'"
},
{
"key": "f8",
"command": "-editor.action.marker.nextInFiles",
"when": "editorFocus"
},
{
"key": "shift+f8",
"command": "-editor.action.marker.prevInFiles",
"when": "editorFocus"
},
{
"key": "shift+f8",
"command": "workbench.action.debug.disconnect",
"when": "focusedSessionIsAttach && inDebugMode"
},
{
"key": "shift+f5",
"command": "-workbench.action.debug.disconnect",
"when": "focusedSessionIsAttach && inDebugMode"
},
{
"key": "ctrl+shift+f",
"command": "search.action.openNewEditor"
},
{
"key": "shift+f11",
"command": "-workbench.action.toggleZenMode"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment