// Place your key bindings in this file to override the defaultsauto[] [ //removed keybinds { "key": "ctrl+shift+alt+up", "command": "-editor.action.copyLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+shift+alt+down", "command": "-editor.action.copyLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "alt+up", "command": "-editor.action.moveLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "alt+down", "command": "-editor.action.moveLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "space", "command": "-filesExplorer.openFilePreserveFocus", "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsFolder && !inputFocus" }, { "key": "ctrl+j", "command": "-workbench.action.togglePanel" }, { "key": "shift+alt+up", "command": "-editor.action.insertCursorAbove", "when": "editorTextFocus" }, { "key": "shift+alt+down", "command": "-editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "ctrl+shift+up", "command": "-editor.action.insertCursorAbove", "when": "editorTextFocus" }, { "key": "ctrl+d", "command": "-editor.action.addSelectionToNextFindMatch", "when": "editorFocus" }, { "key": "ctrl+shift+s", "command": "-workbench.action.files.saveAs" }, { "key": "ctrl+shift+s", "command": "-workbench.action.files.saveLocalFile", "when": "remoteFileDialogVisible" }, { "key": "ctrl+shift+down", "command": "-editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "ctrl+k ctrl+o", "command": "-workbench.action.files.openFolder", "when": "openFolderWorkspaceSupport" }, { "key": "ctrl+shift+o", "command": "-editor.action.accessibleViewGoToSymbol", "when": "accessibilityHelpIsShown && accessibleViewGoToSymbolSupported || accessibleViewGoToSymbolSupported && accessibleViewIsShown" }, { "key": "ctrl+shift+o", "command": "-workbench.action.gotoSymbol", "when": "!accessibilityHelpIsShown && !accessibleViewIsShown" }, { "key": "ctrl+o", "command": "-workbench.action.files.openFolderViaWorkspace", "when": "!openFolderWorkspaceSupport && workbenchState == 'workspace'" }, { "key": "ctrl+o", "command": "-workbench.action.files.openFile", "when": "true" }, { "key": "ctrl+alt+o", "command": "-workbench.action.remote.showMenu" }, { "key": "down", "command": "-selectNextSuggestion", "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion" }, { "key": "up", "command": "-selectPrevSuggestion", "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion" }, { "key": "shift+alt+i", "command": "-editor.action.insertCursorAtEndOfEachLineSelected", "when": "editorTextFocus" }, { "key": "down", "command": "-selectNextCodeAction", "when": "codeActionMenuVisible" }, { "key": "up", "command": "-selectPrevCodeAction", "when": "codeActionMenuVisible" }, { "key": "escape", "command": "-extension.vim_escape", "when": "editorTextFocus && vim.active && !inDebugRepl" }, // basic line movement { "key": "shift+alt+I", "command": "editor.action.copyLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+alt+K", "command": "editor.action.copyLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "alt+i", "command": "editor.action.moveLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "alt+k", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+shift+i", "command": "editor.action.insertCursorAbove", "when": "editorTextFocus" }, { "key": "ctrl+shift+k", "command": "editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "ctrl+shift+s", "command": "editor.action.addSelectionToNextFindMatch", }, { "key": "ctrl+alt+l", "command": "editor.action.insertCursorAtEndOfEachLineSelected", "when": "editorTextFocus" }, // suggestion nav { "key": "ctrl+k", "command": "selectNextSuggestion", "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion" }, { "key": "ctrl+i", "command": "selectPrevSuggestion", "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion" }, { "key": "ctrl+k", "command": "selectNextCodeAction", "when": "codeActionMenuVisible" }, { "key": "ctrl+i", "command": "selectPrevCodeAction", "when": "codeActionMenuVisible" }, { "key": "ctrl+k", "command": "workbench.action.quickOpenNavigateNext", "when": "inQuickInput" }, { "key": "ctrl+i", "command": "workbench.action.quickOpenNavigatePrevious", "when": "inQuickInput" }, // open file/folder { "key": "ctrl+shift+o", "command": "workbench.action.files.openFolder", "when": "openFolderWorkspaceSupport" }, { "key": "capslock", "command": "extension.vim_escape", "when": "editorTextFocus && !inDebugRepl && !suggestWidgetVisible" }, { "key": "ctrl+w", "command": "workbench.action.closeActiveEditor" }, { "key": "ctrl-o", "command": "workbench.action.quickOpen" }, //terminal { "key": "ctrl+l", "command": "terminal.focus", "when": "" }, { "key": "ctrl+j", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus" }, { "key": "ctrl+k", "command": "workbench.action.terminal.focusNext", "when": "terminalFocus" }, { "key": "ctrl+i", "command": "workbench.action.terminal.focusPrevious", "when": "terminalFocus" }, { "key": "ctrl+n", "command": "workbench.action.terminal.new", "when": "terminalFocus" }, { "key": "ctrl+w", "command": "workbench.action.terminal.kill", "when": "terminalFocus" }, //file tree { "key": "ctrl+e", "command": "workbench.explorer.fileView.focus", "when": "" }, { "key": "ctrl+j", "command": "workbench.action.focusActiveEditorGroup", "when": "explorerViewletFocus" }, { "key": "ctrl+w", "command": "workbench.action.toggleSidebarVisibility", "when": "explorerViewletFocus" }, { "key": "ctrl+n", "command": "explorer.newFile", "when": "explorerViewletFocus" }, { "key": "ctrl+shift+n", "command": "explorer.newFolder", "when": "explorerViewletFocus" }, // copilot { "key": "ctrl+g", "command": "workbench.panel.chat.view.copilot.focus", "when": "" }, { "key": "ctrl+j", "command": "workbench.action.focusActiveEditorGroup", "when": "!editorFocus && !terminalFocus" }, { "key": "capslock", "command": "editor.action.inlineSuggest.hide", "when": "inlineSuggestionVisible" }, { "key": "escape", "command": "-editor.action.inlineSuggest.hide", "when": "inlineSuggestionVisible" }, { "key": "capslock", "command": "editor.action.inlineEdit.reject", "when": "inlineEditVisible && !editorReadonly" }, { "key": "escape", "command": "-editor.action.inlineEdit.reject", "when": "inlineEditVisible && !editorReadonly" }, { "key": "capslock", "command": "cancelRenameInput", "when": "editorFocus && renameInputVisible" }, { "key": "escape", "command": "-cancelRenameInput", "when": "editorFocus && renameInputVisible" }, { "key": "capslock", "command": "cancelSelection", "when": "editorHasSelection && textInputFocus" }, { "key": "escape", "command": "-cancelSelection", "when": "editorHasSelection && textInputFocus" }, { "key": "capslock", "command": "closeFindWidget", "when": "editorFocus && findWidgetVisible && !isComposing" }, { "key": "escape", "command": "-closeFindWidget", "when": "editorFocus && findWidgetVisible && !isComposing" }, { "key": "capslock", "command": "editor.action.cancelSelectionAnchor", "when": "editorTextFocus && selectionAnchorSet" }, { "key": "escape", "command": "-editor.action.cancelSelectionAnchor", "when": "editorTextFocus && selectionAnchorSet" }, { "key": "capslock", "command": "editor.debug.action.closeExceptionWidget", "when": "exceptionWidgetVisible" }, { "key": "escape", "command": "-editor.debug.action.closeExceptionWidget", "when": "exceptionWidgetVisible" }, { "key": "capslock", "command": "editor.action.hideColorPicker", "when": "standaloneColorPickerVisible" }, { "key": "escape", "command": "-editor.action.hideColorPicker", "when": "standaloneColorPickerVisible" }, { "key": "capslock", "command": "hideCodeActionWidget", "when": "codeActionMenuVisible" }, { "key": "escape", "command": "-hideCodeActionWidget", "when": "codeActionMenuVisible" }, { "key": "capslock", "command": "hideSuggestWidget", "when": "suggestWidgetVisible && textInputFocus" }, { "key": "escape", "command": "-hideSuggestWidget", "when": "suggestWidgetVisible && textInputFocus" }, { "key": "j", "command": "-notebook.focusNextEditor", "when": "editorTextFocus && inputFocus && notebookEditorFocused && vim.mode == 'Normal' && notebookEditorCursorAtBoundary != 'none' && notebookEditorCursorAtBoundary != 'top'" }, { "key": "j", "command": "-list.focusDown", "when": "listFocus && !inputFocus" }, { "key": "k", "command": "-notebook.focusPreviousEditor", "when": "editorTextFocus && inputFocus && notebookEditorFocused && vim.mode == 'Normal' && notebookEditorCursorAtBoundary != 'bottom' && notebookEditorCursorAtBoundary != 'none'" }, { "key": "shift+enter", "command": "-jupyter.runcurrentcelladvance", "when": "editorTextFocus && isWorkspaceTrusted && jupyter.hascodecells && !editorHasSelection && !notebookEditorFocused" }, { "key": "f5", "command": "jupyter.runcurrentcell", "when": "editorTextFocus && isWorkspaceTrusted && jupyter.hascodecells && !editorHasSelection && !jupyter.havenativecells && !notebookEditorFocused" }, { "key": "ctrl+enter", "command": "-jupyter.runcurrentcell", "when": "editorTextFocus && isWorkspaceTrusted && jupyter.hascodecells && !editorHasSelection && !jupyter.havenativecells && !notebookEditorFocused" }, { "key": "alt+enter", "command": "-jupyter.runcurrentcellandaddbelow", "when": "editorTextFocus && jupyter.hascodecells && !editorHasSelection && !notebookEditorFocused" }, { "key": "shift+enter", "command": "-jupyter.execSelectionInteractive", "when": "editorTextFocus && isWorkspaceTrusted && jupyter.ownsSelection && !findInputFocussed && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python' && activeEditor != 'workbench.editor.interactive'" }, { "key": "ctrl+shift+alt+enter", "command": "-jupyter.runAndDebugCell", "when": "isWorkspaceTrusted && jupyter.ispythonnotebook && !notebookKernel && notebookCellType == 'code' || isWorkspaceTrusted && jupyter.ispythonnotebook && notebookCellType == 'code' && notebookKernel =~ /^ms-toolsai.jupyter\\// && resource not in 'jupyter.notebookeditor.debugDocuments'" }, { "key": "shift+enter", "command": "-notebook.cell.executeAndSelectBelow", "when": "notebookCellListFocused && !inlineChatFocused && notebookCellType == 'markup' || notebookCellListFocused && notebookMissingKernelExtension && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0" }, { "key": "shift+enter", "command": "-notebook.cell.executeAndSelectBelow", "when": "notebookCellListFocused && !interactiveEditorFocused && notebookCellType == 'code' || editorTextFocus && inputFocus && notebookEditorFocused && !interactiveEditorFocused" }, { "key": "shift+enter", "command": "-python.execInREPL", "when": "config.python.REPL.sendToNativeREPL && editorTextFocus && !accessibilityModeEnabled && !jupyter.ownsSelection && !notebookEditorFocused && editorLangId == 'python' && activeEditor != 'workbench.editor.interactive'" }, { "key": "shift+enter", "command": "-python.execSelectionInTerminal", "when": "editorTextFocus && !findInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python' && activeEditor != 'workbench.editor.interactive'" }, { "key": "shift+enter", "command": "-workbench.action.terminal.findNext", "when": "terminalFindInputFocused && terminalHasBeenCreated || terminalFindInputFocused && terminalProcessSupported" }, { "key": "alt+f4", "command": "-workbench.action.closeWindow" }, { "key": "shift+alt+f4", "command": "-editor.action.toggleScreenReaderAccessibilityMode" }, { "key": "i", "command": "list.focusUp", "when": "listFocus && !inputFocus" }, { "key": "k", "command": "-list.focusUp", "when": "listFocus && !inputFocus" }, { "key": "up", "command": "-list.focusUp", "when": "listFocus && !inputFocus && !treestickyScrollFocused" }, { "key": "k", "command": "list.focusDown", "when": "listFocus && !inputFocus && !treestickyScrollFocused" }, { "key": "down", "command": "-list.focusDown", "when": "listFocus && !inputFocus && !treestickyScrollFocused" }, { "key": "j", "command": "list.collapse", "when": "listFocus && treeElementCanCollapse && !inputFocus && !treestickyScrollFocused || listFocus && treeElementHasParent && !inputFocus && !treestickyScrollFocused" }, { "key": "left", "command": "-list.collapse", "when": "listFocus && treeElementCanCollapse && !inputFocus && !treestickyScrollFocused || listFocus && treeElementHasParent && !inputFocus && !treestickyScrollFocused" }, { "key": "l", "command": "list.expand", "when": "listFocus && treeElementCanExpand && !inputFocus && !treestickyScrollFocused || listFocus && treeElementHasChild && !inputFocus && !treestickyScrollFocused" }, { "key": "right", "command": "-list.expand", "when": "listFocus && treeElementCanExpand && !inputFocus && !treestickyScrollFocused || listFocus && treeElementHasChild && !inputFocus && !treestickyScrollFocused" }, { "key": "shift+k", "command": "list.expandSelectionDown", "when": "listFocus && listSupportsMultiselect && !inputFocus && !treestickyScrollFocused" }, { "key": "shift+down", "command": "-list.expandSelectionDown", "when": "listFocus && listSupportsMultiselect && !inputFocus && !treestickyScrollFocused" }, { "key": "shift+i", "command": "list.expandSelectionUp", "when": "listFocus && listSupportsMultiselect && !inputFocus && !treestickyScrollFocused" }, { "key": "shift+up", "command": "-list.expandSelectionUp", "when": "listFocus && listSupportsMultiselect && !inputFocus && !treestickyScrollFocused" }, { "key": "meta+enter", "command": "sqltools.executeCurrentQuery" }, { "key": "ctrl+e", "command": "-workbench.action.quickOpen" }, { "key": "ctrl+e", "command": "-editor.action.toggleScreenReaderAccessibilityMode", "when": "accessibilityHelpIsShown" }, { "key": "ctrl+e", "command": "-workbench.action.quickOpenNavigateNextInFilePicker", "when": "inFilesPicker && inQuickOpen" }, { "key": "ctrl+alt+o", "command": "workbench.action.openRecent" }, { "key": "ctrl+r", "command": "-workbench.action.openRecent" } ]