[ // Terminals { "key": "cmd+t", "command": "workbench.action.terminal.toggleTerminal" }, { "key": "ctrl+o", "command": "workbench.action.terminal.focusNext", "when": "terminalFocus" }, { "key": "ctrl+i", "command": "workbench.action.terminal.focusPrevious", "when": "terminalFocus" }, { "key": "ctrl+k", "command": "workbench.action.terminal.kill", "when": "terminalFocus" }, { "key": "ctrl+enter", "command": "workbench.action.terminal.newInActiveWorkspace", "when": "terminalFocus" }, { "key": "ctrl+shift+enter", "command": "workbench.action.terminal.split", "when": "terminalFocus" }, { "key": "ctrl+shift+i", "command": "workbench.action.terminal.focusPreviousPane", "when": "terminalFocus" }, { "key": "ctrl+shift+o", "command": "workbench.action.terminal.focusNextPane", "when": "terminalFocus" }, { "key": "pagedown", "command": "workbench.action.terminal.scrollDownPage", "when": "terminalFocus && terminalProcessSupported" }, { "key": "shift+pagedown", "command": "-workbench.action.terminal.scrollDownPage", "when": "terminalFocus && terminalProcessSupported" }, { "key": "pageup", "command": "workbench.action.terminal.scrollUpPage", "when": "terminalFocus && terminalProcessSupported" }, { "key": "shift+pageup", "command": "-workbench.action.terminal.scrollUpPage", "when": "terminalFocus && terminalProcessSupported" }, // Navigations { "key": "ctrl+h", "command": "list.collapse", "when": "listFocus && !inputFocus" }, { "key": "ctrl+l", "command": "list.expand", "when": "listFocus && !inputFocus" }, { "key": "ctrl+k", "command": "list.focusUp", "when": "listFocus && !inputFocus" }, { "key": "ctrl+j", "command": "list.focusDown", "when": "listFocus && !inputFocus" }, { "key": "ctrl+j", "command": "selectNextSuggestion", "when": "suggestWidgetVisible" }, { "key": "ctrl+k", "command": "selectPrevSuggestion", "when": "suggestWidgetVisible" }, { "key": "ctrl+j", "command": "workbench.action.quickOpenSelectNext", "when": "inQuickOpen" }, { "key": "ctrl+k", "command": "workbench.action.quickOpenSelectPrevious", "when": "inQuickOpen" }, { "key": "ctrl+n", "command": "selectNextSuggestion", "when": "suggestWidgetVisible" }, { "key": "ctrl+p", "command": "selectPrevSuggestion", "when": "suggestWidgetVisible" }, { "key": "ctrl+n", "command": "workbench.action.quickOpenSelectNext", "when": "inQuickOpen" }, { "key": "ctrl+p", "command": "workbench.action.quickOpenSelectPrevious", "when": "inQuickOpen" }, // Editor { "key": "ctrl+q ctrl+q", "command": "workbench.action.closeEditorsInOtherGroups", "when": "editorTextFocus" }, { "key": "ctrl+q ctrl+g", "command": "workbench.action.closeEditorsInGroup", "when": "editorTextFocus" }, { "key": "ctrl+q ctrl+o", "command": "workbench.action.closeOtherEditors" }, { "key": "ctrl+q ctrl+w", "command": "workbench.action.closeAllEditors" }, { "key": "ctrl+escape", "command": "editor.action.triggerSuggest", "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly" }, // Editor nav { "key": "meta+1", "command": "workbench.action.focusFirstEditorGroup" }, { "key": "ctrl+1", "command": "-workbench.action.focusFirstEditorGroup" }, { "key": "meta+2", "command": "workbench.action.focusSecondEditorGroup" }, { "key": "ctrl+2", "command": "-workbench.action.focusSecondEditorGroup" }, { "key": "meta+3", "command": "workbench.action.focusThirdEditorGroup" }, { "key": "ctrl+3", "command": "-workbench.action.focusThirdEditorGroup" }, { "key": "meta+0", "command": "workbench.action.focusSideBar" }, { "key": "ctrl+0", "command": "-workbench.action.focusSideBar" }, // Jumplist { "key": "ctrl+o", "command": "workbench.action.navigateBack" }, { "key": "ctrl+i", "command": "workbench.action.navigateForward" }, // Error navigation { "key": "ctrl+e n", "command": "editor.action.marker.nextInFiles", "when": "editorFocus && !editorReadonly" }, { "key": "ctrl+e p", "command": "editor.action.marker.prevInFiles", "when": "editorFocus && !editorReadonly" }, { "key": "f8", "command": "-editor.action.marker.nextInFiles", "when": "editorFocus && !editorReadonly" }, { "key": "shift+f8", "command": "-editor.action.marker.prevInFiles", "when": "editorFocus && !editorReadonly" }, // Panel { "key": "ctrl+,", "command": "workbench.action.toggleMaximizedPanel" }, { "key": "ctrl+shift+oem_8", "command": "docsView.documentation.focus" }, // Spacecode { "key": "ctrl+space", "command": "vspacecode.space" }, // Notifications { "key": "ctrl+y ;", "command": "notifications.clearAll" }, { "key": "ctrl+y .", "command": "notifications.showList" }, // Multiple cursors { "key": "ctrl+shift+j", "command": "editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "ctrl+shift+k", "command": "editor.action.insertCursorAbove", "when": "editorTextFocus" }, { "key": "ctrl+shift+j", "command": "-workbench.action.search.toggleQueryDetails", "when": "inSearchEditor || searchViewletFocus" }, { "key": "ctrl+shift+down", "command": "-editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "ctrl+shift+up", "command": "-editor.action.insertCursorAbove", "when": "editorTextFocus" }, { "key": "ctrl+shift+k", "command": "-editor.action.deleteLines", "when": "textInputFocus && !editorReadonly" }, // Git { "key": "cmd+g cmd+c", "command": "workbench.action.addComment" }, { "key": "shift+cmd+g", "command": "pr:github.focus" }, { "key": "ctrl+g n", "command": "workbench.action.compareEditor.nextChange" }, { "key": "ctrl+g n", "command": "workbench.action.editor.nextChange" }, { "key": "ctrl+g n", "command": "workbench.action.editor.nextChange", "when": "editorTextFocus && !textCompareEditorActive" }, { "key": "ctrl+g p", "command": "workbench.action.editor.previousChange", "when": "editorTextFocus && !textCompareEditorActive" }, { "key": "ctrl+g n", "command": "workbench.action.compareEditor.nextChange", "when": "textCompareEditorVisible" }, { "key": "ctrl+g p", "command": "workbench.action.compareEditor.previousChange", "when": "textCompareEditorVisible" }, // Magit { "key": "g r", "command": "magit.refresh", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, { "key": "tab", "command": "extension.vim_tab", "when": "editorFocus && vim.active && !inDebugRepl && vim.mode != 'Insert' && editorLangId != 'magit'" }, { "key": "g g", "command": "cursorTop", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, { "key": "x", "command": "magit.discard-at-point", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, { "key": "n", "command": "magit.reverse-at-point", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, { "key": "shift+o", "command": "magit.resetting", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, { "key": "shift+n", "command": "magit.reverting", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, { "key": "ctrl+[BracketRight]", "command": "magit.process-log" }, // Magit resets { "key": "k", "command": "-magit.discard-at-point" }, { "key": "tab", "command": "-extension.vim_tab", "when": "editorFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'" }, { "key": "shift+v", "command": "-magit.reverting" }, { "key": "shift+x", "command": "-magit.resetting" }, { "key": "x", "command": "-magit.reset-mixed" }, { "key": "ctrl+u x", "command": "-magit.reset-hard" }, { "key": "v", "command": "-magit.reverse-at-point" }, { "key": "shift+1", "command": "-magit.running", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, { "key": "shift+5", "command": "-magit.worktree", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, { "key": "shift+4", "command": "-magit.process-log", "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" }, // Misc resets with no rebind { "key": "shift+alt+[Period]", "command": "-gitlens.gitCommands", "when": "!gitlens:disabled && config.gitlens.keymap == 'alternate'" } ]