Skip to content

Instantly share code, notes, and snippets.

@SaltySpaghetti
Created July 30, 2025 08:51
Show Gist options
  • Save SaltySpaghetti/5d7f83171e36ab1a48a07312f202ae74 to your computer and use it in GitHub Desktop.
Save SaltySpaghetti/5d7f83171e36ab1a48a07312f202ae74 to your computer and use it in GitHub Desktop.
VSCode Keybindings
[
{
"key": "ctrl+space",
"command": "editor.action.triggerSuggest",
"when": "isWindows && editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
},
{
"key": "ctrl+i",
"command": "-editor.action.triggerSuggest",
"when": "isWindows && editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
},
{
"key": "ctrl+q",
"command": "-workbench.action.quit"
},
{
"key": "ctrl+k ctrl+e",
"command": "-keybindings.editor.defineWhenExpression",
"when": "isWindows && inKeybindings && keybindingFocus"
},
{
"key": "shift+ctrl+e",
"command": "workbench.view.explorer",
"when": "isWindows && viewContainer.workbench.view.explorer.enabled"
},
{
"key": "shift+ctrl+e",
"command": "-workbench.view.explorer",
"when": "isWindows && viewContainer.workbench.view.explorer.enabled"
},
{
"key": "shift+ctrl+g",
"command": "workbench.view.scm",
"when": "isWindows && workbench.scm.active"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm",
"when": "isWindows && workbench.scm.active"
},
{
"key": "shift+ctrl+g",
"command": "-editor.action.previousMatchFindAction",
"when": "isWindows && editorFocus"
},
{
"key": "shift+ctrl+g",
"command": "-workbench.action.terminal.findPrevious",
"when": "isWindows && terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported"
},
{
"key": "shift+ctrl+g",
"command": "-workbench.action.terminal.openDetectedLink",
"when": "isWindows && accessibleViewIsShown && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal'"
},
{
"key": "ctrl+g",
"command": "-workbench.action.terminal.findNext",
"when": "isWindows && terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported"
},
{
"key": "ctrl+g",
"command": "-workbench.action.terminal.goToRecentDirectory",
"when": "isWindows && terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+g",
"command": "-editor.action.nextMatchFindAction",
"when": "isWindows && editorFocus"
},
{
"key": "ctrl+g",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "ctrl+k ctrl+f",
"command": "-editor.action.formatSelection",
"when": "isWindows && editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+f",
"command": "git.fetchAll"
},
{
"key": "ctrl+k ctrl+g",
"command": "git.pull"
},
{
"key": "ctrl+k ctrl+s",
"command": "-workbench.action.openGlobalKeybindings"
},
{
"key": "ctrl+k ctrl+s",
"command": "git.stashIncludeUntracked"
},
{
"key": "ctrl+k ctrl+z",
"command": "git.stashApplyLatest"
},
{
"key": "ctrl+k ctrl+p",
"command": "git.push"
},
{
"key": "ctrl+]",
"command": "-editor.action.indentLines",
"when": "isWindows && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+[",
"command": "-editor.action.outdentLines",
"when": "isWindows && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+]",
"command": "workbench.action.moveEditorToRightGroup"
},
{
"key": "ctrl+[",
"command": "workbench.action.moveEditorToLeftGroup"
},
{
"key": "shift+ctrl+o",
"command": "-workbench.action.gotoSymbol",
"when": "isWindows && !accessibilityHelpIsShown && !accessibleViewIsShown"
},
{
"key": "shift+ctrl+o",
"command": "-editor.action.accessibleViewGoToSymbol",
"when": "isWindows && accessibilityHelpIsShown && accessibleViewGoToSymbolSupported || accessibleViewGoToSymbolSupported && accessibleViewIsShown"
},
{
"key": "ctrl+o",
"command": "workbench.action.gotoSymbol"
},
{
"key": "ctrl+o",
"command": "-workbench.action.files.openFile",
"when": "isWindows && false"
},
{
"key": "ctrl+o",
"command": "-workbench.action.files.openFolderViaWorkspace",
"when": "isWindows && !openFolderWorkspaceSupport && workbenchState == 'workspace'"
},
{
"key": "ctrl+o",
"command": "-workbench.action.files.openFileFolder",
"when": "isWindows && isMacNative && openFolderWorkspaceSupport"
},
{
"key": "ctrl+o",
"command": "-workbench.action.files.openLocalFileFolder",
"when": "isWindows && remoteFileDialogVisible"
},
{
"key": "cmd+space",
"command": "editor.action.triggerSuggest",
"when": "isMac && editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
},
{
"key": "cmd+i",
"command": "-editor.action.triggerSuggest",
"when": "isMac && editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
},
{
"key": "cmd+q",
"command": "-workbench.action.quit"
},
{
"key": "cmd+k cmd+e",
"command": "-keybindings.editor.defineWhenExpression",
"when": "isMac && inKeybindings && keybindingFocus"
},
{
"key": "shift+cmd+e",
"command": "workbench.view.explorer",
"when": "isMac && viewContainer.workbench.view.explorer.enabled"
},
{
"key": "shift+cmd+e",
"command": "-workbench.view.explorer",
"when": "isMac && viewContainer.workbench.view.explorer.enabled"
},
{
"key": "shift+cmd+g",
"command": "workbench.view.scm",
"when": "isMac && workbench.scm.active"
},
{
"key": "cmd+shift+g",
"command": "-workbench.view.scm",
"when": "isMac && workbench.scm.active"
},
{
"key": "shift+cmd+g",
"command": "-editor.action.previousMatchFindAction",
"when": "isMac && editorFocus"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPrevious",
"when": "isMac && terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.openDetectedLink",
"when": "isMac && accessibleViewIsShown && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal'"
},
{
"key": "cmd+g",
"command": "-workbench.action.terminal.findNext",
"when": "isMac && terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported"
},
{
"key": "cmd+g",
"command": "-workbench.action.terminal.goToRecentDirectory",
"when": "isMac && terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "cmd+g",
"command": "-editor.action.nextMatchFindAction",
"when": "isMac && editorFocus"
},
{
"key": "cmd+g",
"command": "workbench.action.gotoLine"
},
{
"key": "cmd+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "cmd+k cmd+f",
"command": "-editor.action.formatSelection",
"when": "isMac && editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+f",
"command": "git.fetchAll"
},
{
"key": "cmd+k cmd+g",
"command": "git.pull"
},
{
"key": "cmd+k cmd+s",
"command": "-workbench.action.openGlobalKeybindings"
},
{
"key": "cmd+k cmd+s",
"command": "git.stashIncludeUntracked"
},
{
"key": "cmd+k cmd+z",
"command": "git.stashApplyLatest"
},
{
"key": "cmd+k cmd+p",
"command": "git.push"
},
{
"key": "cmd+]",
"command": "-editor.action.indentLines",
"when": "isMac && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+[",
"command": "-editor.action.outdentLines",
"when": "isMac && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+]",
"command": "workbench.action.moveEditorToRightGroup"
},
{
"key": "cmd+[",
"command": "workbench.action.moveEditorToLeftGroup"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol",
"when": "isMac && !accessibilityHelpIsShown && !accessibleViewIsShown"
},
{
"key": "shift+cmd+o",
"command": "-editor.action.accessibleViewGoToSymbol",
"when": "isMac && accessibilityHelpIsShown && accessibleViewGoToSymbolSupported || accessibleViewGoToSymbolSupported && accessibleViewIsShown"
},
{
"key": "cmd+o",
"command": "workbench.action.gotoSymbol"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openFile",
"when": "isMac && false"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openFolderViaWorkspace",
"when": "isMac && !openFolderWorkspaceSupport && workbenchState == 'workspace'"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openFileFolder",
"when": "isMac && isMacNative && openFolderWorkspaceSupport"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openLocalFileFolder",
"when": "isMac && remoteFileDialogVisible"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment