464 lines
No EOL
14 KiB
JSON
464 lines
No EOL
14 KiB
JSON
// 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"
|
|
},
|
|
// open file/folder
|
|
{
|
|
"key": "ctrl+shift+o",
|
|
"command": "workbench.action.files.openFolder",
|
|
"when": "openFolderWorkspaceSupport"
|
|
},
|
|
{
|
|
"key": "ctrl+alt+o",
|
|
"command": "workbench.action.files.openFile",
|
|
"when": "true"
|
|
},
|
|
//--------------VIM STUFF----------------------//
|
|
{
|
|
"key": "capslock",
|
|
"command": "extension.vim_escape",
|
|
"when": "editorTextFocus && !inDebugRepl && !suggestWidgetVisible"
|
|
},
|
|
{
|
|
"key": "ctrl+w",
|
|
"command": "workbench.action.closeActiveEditor"
|
|
},
|
|
//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+shift+k",
|
|
"command": "workbench.explorer.fileView.focus",
|
|
"when": "terminalFocus"
|
|
},
|
|
{
|
|
"key": "ctrl+shift+i",
|
|
"command": "terminal.focus",
|
|
"when": "explorerViewletFocus"
|
|
},
|
|
{
|
|
"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+shift+k",
|
|
"command": "workbench.panel.chat.view.copilot.focus",
|
|
"when": "explorerViewletFocus"
|
|
},
|
|
{
|
|
"key": "ctrl+shift+i",
|
|
"command": "workbench.explorer.fileView.focus",
|
|
"when": "!editorFocus && !terminalFocus && !explorerViewletFocus"
|
|
},
|
|
{
|
|
"key": "ctrl+j",
|
|
"command": "workbench.action.focusActiveEditorGroup",
|
|
"when": "!editorFocus && !terminalFocus"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "editor.action.hideColorPicker",
|
|
"when": "standaloneColorPickerVisible"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-editor.action.hideColorPicker",
|
|
"when": "standaloneColorPickerVisible"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "editor.action.inlineEdit.reject",
|
|
"when": "inlineEditVisible && !editorReadonly"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-editor.action.inlineEdit.reject",
|
|
"when": "inlineEditVisible && !editorReadonly"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "hideSuggestWidget",
|
|
"when": "suggestWidgetVisible && textInputFocus"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-hideSuggestWidget",
|
|
"when": "suggestWidgetVisible && textInputFocus"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "editor.action.cancelSelectionAnchor",
|
|
"when": "editorTextFocus && selectionAnchorSet"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-editor.action.cancelSelectionAnchor",
|
|
"when": "editorTextFocus && selectionAnchorSet"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "workbench.action.chat.stopListening",
|
|
"when": "voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || voiceChatInProgress && scopedVoiceChatInProgress == 'terminal' || voiceChatInProgress && scopedVoiceChatInProgress == 'view'"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-workbench.action.chat.stopListening",
|
|
"when": "voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || voiceChatInProgress && scopedVoiceChatInProgress == 'terminal' || voiceChatInProgress && scopedVoiceChatInProgress == 'view'"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "workbench.action.speech.stopReadAloud",
|
|
"when": "scopedChatSynthesisInProgress && textToSpeechInProgress"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-workbench.action.speech.stopReadAloud",
|
|
"when": "scopedChatSynthesisInProgress && textToSpeechInProgress"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "editor.debug.action.closeExceptionWidget",
|
|
"when": "exceptionWidgetVisible"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-editor.debug.action.closeExceptionWidget",
|
|
"when": "exceptionWidgetVisible"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "editor.action.inlineSuggest.hide",
|
|
"when": "inlineSuggestionVisible"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-editor.action.inlineSuggest.hide",
|
|
"when": "inlineSuggestionVisible"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "notebook.cell.quitEdit",
|
|
"when": "inputFocus && notebookEditorFocused && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible && !inlineChatFocused"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-notebook.cell.quitEdit",
|
|
"when": "inputFocus && notebookEditorFocused && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible && !inlineChatFocused"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "notebook.cell.quitEdit",
|
|
"when": "notebookEditorFocused && notebookOutputFocused"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-notebook.cell.quitEdit",
|
|
"when": "notebookEditorFocused && notebookOutputFocused"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "notebook.cell.quitEdit",
|
|
"when": "inputFocus && notebookEditorFocused && vim.active && !editorHasSelection && !editorHoverVisible && vim.mode == 'Normal'"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-notebook.cell.quitEdit",
|
|
"when": "inputFocus && notebookEditorFocused && vim.active && !editorHasSelection && !editorHoverVisible && vim.mode == 'Normal'"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "notifications.hideList",
|
|
"when": "notificationCenterVisible"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-notifications.hideList",
|
|
"when": "notificationCenterVisible"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "settings.action.clearSearchResults",
|
|
"when": "inSettingsEditor && inSettingsSearch"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-settings.action.clearSearchResults",
|
|
"when": "inSettingsEditor && inSettingsSearch"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "settings.action.focusLevelUp",
|
|
"when": "inSettingsEditor && !inSettingsJSONEditor && !inSettingsSearch"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-settings.action.focusLevelUp",
|
|
"when": "inSettingsEditor && !inSettingsJSONEditor && !inSettingsSearch"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "search.action.focusQueryEditorWidget",
|
|
"when": "inSearchEditor"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-search.action.focusQueryEditorWidget",
|
|
"when": "inSearchEditor"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "search.action.cancel",
|
|
"when": "listFocus && searchViewletVisible && !inputFocus && !treestickyScrollFocused && searchState != '0'"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-search.action.cancel",
|
|
"when": "listFocus && searchViewletVisible && !inputFocus && !treestickyScrollFocused && searchState != '0'"
|
|
},
|
|
{
|
|
"key": "capslock",
|
|
"command": "inlayHints.stopReadingLineWithHint",
|
|
"when": "isReadingLineWithInlayHints"
|
|
},
|
|
{
|
|
"key": "escape",
|
|
"command": "-inlayHints.stopReadingLineWithHint",
|
|
"when": "isReadingLineWithInlayHints"
|
|
},
|
|
//------------OTHER-----------------//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
] |