Skip to content

Instantly share code, notes, and snippets.

@rw3iss
Last active September 19, 2025 14:51
Show Gist options
  • Select an option

  • Save rw3iss/643373e0eb27fac57e946a798773f17d to your computer and use it in GitHub Desktop.

Select an option

Save rw3iss/643373e0eb27fac57e946a798773f17d to your computer and use it in GitHub Desktop.
keybindings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+ctrl+t",
"command": "editor.action.insertSnippet",
"when": "editorHasSelection",
"args": {
"langId": "javascript",
"name": "Wrap in try/catch"
}
},
{
"key": "cmd+ctrl+p",
"command": "editor.action.insertSnippet",
"when": "editorHasSelection",
"args": {
"langId": "javascript",
"name": "Surround in profile"
}
},
{
"key": "ctrl+tab",
"command": "workbench.action.quickSwitchWindow"
},
{
"key": "alt+x",
"command": "editor.action.transformToLowercase"
},
{
"key": "ctrl+t",
"command": "workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+n",
"command": "workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "f1",
"command": "-workbench.action.showCommands"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenNavigateNextInEditorPicker",
"when": "inEditorsPicker && inQuickOpen"
},
{
"key": "alt+z",
"command": "extension.toggleBool",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+c",
"command": "extension.toggleCase",
"when": "editorTextFocus"
},
{
"key": "numlock",
"command": "workbench.action.showCommands"
},
{
"key": "ctrl+shift+p",
"command": "workbench.action.showCommands"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug",
"when": "viewContainer.workbench.view.debug.enabled"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.revealDefinition"
},
{
"key": "ctrl+shift+.",
"command": "-breadcrumbs.toggleToOn",
"when": "!config.breadcrumbs.enabled"
},
{
"key": "shift+alt+i",
"command": "-editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
{
"key": "end",
"command": "-lastCompressedFolder",
"when": "explorerViewletCompressedFocus && explorerViewletVisible && filesExplorerFocus && !explorerViewletCompressedLastFocus && !inputFocus"
},
{
"key": "end",
"command": "-notifications.focusLastToast",
"when": "notificationFocus && notificationToastsVisible"
},
{
"key": "end",
"command": "-cursorEnd",
"when": "textInputFocus"
},
{
"key": "end",
"command": "scrollEditorBottom"
},
{
"key": "pageup",
"command": "-notebook.cell.cursorPageUp",
"when": "editorTextFocus && inputFocus && notebookEditorFocused"
},
{
"key": "home",
"command": "-cursorHome",
"when": "textInputFocus"
},
{
"key": "home",
"command": "-firstCompressedFolder",
"when": "explorerViewletCompressedFocus && explorerViewletVisible && filesExplorerFocus && !explorerViewletCompressedFirstFocus && !inputFocus"
},
{
"key": "home",
"command": "-notifications.focusFirstToast",
"when": "notificationFocus && notificationToastsVisible"
},
{
"key": "home",
"command": "scrollEditorTop"
},
{
"key": "shift+alt+s",
"command": "workbench.action.openApplicationSettingsJson"
},
{
"key": "shift+alt+w",
"command": "workbench.action.openWorkspaceSettingsFile"
},
{
"key": "shift+r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "f2",
"command": "-renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "shift+alt+k",
"command": "workbench.action.openGlobalKeybindings"
},
{
"key": "ctrl+k ctrl+s",
"command": "-workbench.action.openGlobalKeybindings"
},
{
"key": "shift+alt+d",
"command": "-notebook.cell.detectLanguage",
"when": "notebookCellEditable && notebookEditable"
},
{
"key": "shift+alt+d",
"command": "-editor.detectLanguage",
"when": "editorTextFocus && !notebookEditable"
},
{
"key": "shift+alt+d",
"command": "editor.action.goToTypeDefinition"
},
{
"key": "shift+cmd+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "alt+r",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "workbench.action.openGlobalKeybindingsFile"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+cmd+k",
"command": "-keybindings.editor.recordSearchKeys",
"when": "inKeybindings && inKeybindingsSearch"
},
{
"key": "alt+cmd+t",
"command": "-workbench.action.closeOtherEditors"
},
{
"key": "shift+f7",
"command": "-editor.action.wordHighlight.prev",
"when": "editorTextFocus && hasWordHighlights"
},
{
"key": "shift+cmd+left",
"command": "-cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+left",
"command": "-workbench.action.terminal.sendSequence",
"when": "terminalFocus && terminalShellType == 'pwsh'"
},
{
"key": "shift+cmd+right",
"command": "-cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+right",
"command": "-workbench.action.terminal.sendSequence",
"when": "terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh'"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward",
"when": "canNavigateForward"
},
{
"key": "shift+cmd+left",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+cmd+left",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.previousEditor"
},
{
"key": "shift+cmd+right",
"command": "workbench.action.navigateForward"
},
{
"key": "shift+cmd+o",
"command": "workbench.action.files.openFileFolderInNewWindow"
},
{
"key": "ctrl+cmd+o",
"command": "workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+e",
"command": "-workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "cmd+h",
"command": "extension.toggleFiles"
},
{
"key": "ctrl+i",
"command": "-workbench.action.chat.startVoiceChat",
"when": "chatIsEnabled && hasSpeechProvider && inChatInput && !chatSessionRequestInProgress && !editorFocus && !notebookEditorFocused && !scopedVoiceChatGettingReady && !speechToTextInProgress || chatIsEnabled && hasSpeechProvider && inlineChatFocused && !chatSessionRequestInProgress && !editorFocus && !notebookEditorFocused && !scopedVoiceChatGettingReady && !speechToTextInProgress"
},
{
"key": "ctrl+i",
"command": "-workbench.action.chat.stopListeningAndSubmit",
"when": "inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'view' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'view'"
},
{
"key": "ctrl+i",
"command": "-inlineChat2.close",
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0' || inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.hasEditorModifications && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0'"
},
{
"key": "ctrl+i",
"command": "-inlineChat.start",
"when": "editorFocus && inlineChatHasEditsAgent && inlineChatPossible && !editorReadonly && !editorSimpleInput || editorFocus && inlineChatHasProvider && inlineChatPossible && !editorReadonly && !editorSimpleInput"
},
{
"key": "ctrl+i",
"command": "-inlineChat.startWithCurrentLine",
"when": "inlineChatHasProvider && inlineChatShowingHint && !editorReadonly && !inlineChatVisible"
},
{
"key": "ctrl+i",
"command": "-workbench.action.terminal.chat.start",
"when": "chatIsEnabled && terminalChatAgentRegistered && terminalFocusInAny && terminalHasBeenCreated || chatIsEnabled && terminalChatAgentRegistered && terminalFocusInAny && terminalProcessSupported"
},
{
"key": "ctrl+i",
"command": "-inlineChat2.reveal",
"when": "inlineChatHasEditsAgent && !chatEdits.isGlobalEditingSession && chatEdits.requestCount >= 1"
},
{
"key": "ctrl+i",
"command": "-settings.action.toggleAiSearch",
"when": "inSettingsEditor"
},
{
"key": "ctrl+i",
"command": "-search.action.searchWithAI",
"when": "hasAIResultProviderKey && searchViewletFocus"
},
{
"key": "ctrl+i",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
},
{
"key": "ctrl+i",
"command": "-focusSuggestion",
"when": "suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
},
{
"key": "ctrl+i",
"command": "-inlineChat.holdForSpeech",
"when": "hasSpeechProvider && inlineChatVisible && textInputFocus"
},
{
"key": "ctrl+i",
"command": "-notebook.cell.chat.start",
"when": "config.notebook.experimental.cellChat && notebookChatAgentRegistered && notebookEditable && notebookEditorFocused && !inputFocus || config.notebook.experimental.generate && notebookChatAgentRegistered && notebookEditable && notebookEditorFocused && !inputFocus"
},
{
"key": "ctrl+i",
"command": "-toggleSuggestionDetails",
"when": "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+i",
"command": "-workbench.action.chat.holdToVoiceChatInChatView",
"when": "chatIsEnabled && hasSpeechProvider && !chatSessionRequestInProgress && !editorFocus && !inChatInput && !inSettingsEditor && !inlineChatFocused && !notebookEditorFocused && !searchViewletFocus"
},
{
"key": "ctrl+i",
"command": "-workbench.action.terminal.suggestToggleDetails",
"when": "simpleSuggestWidgetHasFocusedSuggestion && terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || simpleSuggestWidgetHasFocusedSuggestion && terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible"
},
{
"key": "ctrl+alt+i",
"command": "-workbench.action.chat.open",
"when": "!chatSetupDisabled && !chatSetupHidden"
},
{
"key": "ctrl+shift+alt+i",
"command": "-workbench.action.chat.openAgent",
"when": "config.chat.agent.enabled && !chatSetupDisabled && !chatSetupHidden"
},
{
"key": "ctrl+k i",
"command": "-inlineChat.startWithCurrentLine",
"when": "inlineChatHasProvider && !editorReadonly && !inlineChatVisible"
},
{
"key": "ctrl+k i",
"command": "-notebook.cell.chat.start",
"when": "config.notebook.experimental.cellChat && notebookChatAgentRegistered && notebookEditable && notebookEditorFocused && !inputFocus || config.notebook.experimental.generate && notebookChatAgentRegistered && notebookEditable && notebookEditorFocused && !inputFocus"
},
{
"key": "ctrl+alt+i",
"command": "-workbench.panel.chat",
"when": "workbench.panel.chat.view.copilot.active"
},
{
"key": "ctrl+i",
"command": "-markdown.extension.editing.toggleItalic",
"when": "editorTextFocus && !editorReadonly && editorLangId =~ /^markdown$|^rmd$|^quarto$/"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.applyInEditor",
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat && !inChatInput"
},
{
"key": "ctrl+alt+/",
"command": "-workbench.action.chat.attach.instructions",
"when": "chatIsEnabled && config.chat.promptFiles"
},
{
"key": "alt+f5",
"command": "-chatEditor.action.navigateNext",
"when": "chatEdits.hasEditorModifications && chatIsEnabled && editorFocus || chatEdits.hasEditorModifications && chatIsEnabled && notebookCellListFocused"
},
{
"key": "shift+alt+f5",
"command": "-chatEditor.action.navigatePrevious",
"when": "chatEdits.hasEditorModifications && chatIsEnabled && editorFocus || chatEdits.hasEditorModifications && chatIsEnabled && notebookCellListFocused"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.insertCodeBlock",
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat && !inChatInput"
},
{
"key": "ctrl+alt+enter",
"command": "-workbench.action.chat.runInTerminal",
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat"
},
{
"key": "ctrl+alt+y",
"command": "-chatEditor.action.acceptAllEdits",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+shift+y",
"command": "-chatEditor.action.accept",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+y",
"command": "-chatEditor.action.acceptHunk",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookCellListFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+l",
"command": "-workbench.action.chat.newChat",
"when": "chatIsEnabled && inChat"
},
{
"key": "ctrl+n",
"command": "-workbench.action.chat.newChat",
"when": "chatIsEnabled && inChat"
},
{
"key": "ctrl+n",
"command": "-workbench.action.openChat",
"when": "chatIsEnabled && inChat && inChatEditor"
},
{
"key": "ctrl+alt+pagedown",
"command": "-workbench.action.chat.nextCodeBlock",
"when": "chatIsEnabled && inChat"
},
{
"key": "ctrl+f9",
"command": "-workbench.action.chat.nextFileTree",
"when": "chatIsEnabled && inChat"
},
{
"key": "ctrl+alt+pageup",
"command": "-workbench.action.chat.previousCodeBlock",
"when": "chatIsEnabled && inChat"
},
{
"key": "ctrl+shift+f9",
"command": "-workbench.action.chat.previousFileTree",
"when": "chatIsEnabled && inChat"
},
{
"key": "alt+meta+/",
"command": "-workbench.action.chat.run.prompt",
"when": "chatIsEnabled && config.chat.promptFiles"
},
{
"key": "f7",
"command": "-chatEditor.action.showAccessibleDiffView",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress"
},
{
"key": "escape",
"command": "-workbench.action.chat.stopListening",
"when": "voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || voiceChatInProgress && scopedVoiceChatInProgress == 'view'"
},
{
"key": "escape",
"command": "-workbench.action.speech.stopReadAloud",
"when": "scopedChatSynthesisInProgress && textToSpeechInProgress"
},
{
"key": "ctrl+shift+n",
"command": "-chatEditor.action.reject",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+n",
"command": "-chatEditor.action.undoHunk",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookCellListFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+alt+.",
"command": "-github.copilot.chat.rerunWithCopilotDebug",
"when": "github.copilot-chat.activated && terminalFocus && terminalShellIntegrationEnabled && !terminalAltBufferActive"
},
{
"key": "ctrl+enter",
"command": "-inlineChat.acceptChanges",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "escape",
"command": "-workbench.action.terminal.chat.close",
"when": "chatIsEnabled && terminalChatFocus && terminalChatVisible || chatIsEnabled && terminalChatVisible && terminalFocus"
},
{
"key": "ctrl+down",
"command": "-inlineChat.focus",
"when": "editorTextFocus && inlineChatVisible && !accessibilityModeEnabled && !inlineChatFocused && !isEmbeddedDiffEditor && inlineChatOuterCursorPosition == 'above'"
},
{
"key": "escape",
"command": "-inlineChat2.close",
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.hasEditorModifications && !chatEdits.isRequestInProgress || inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0'"
},
{
"key": "ctrl+up",
"command": "-inlineChat.focus",
"when": "editorTextFocus && inlineChatVisible && !accessibilityModeEnabled && !inlineChatFocused && !isEmbeddedDiffEditor && inlineChatOuterCursorPosition == 'below'"
},
{
"key": "ctrl+alt+enter",
"command": "-workbench.action.terminal.chat.insertCommand",
"when": "chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalHasBeenCreated && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks || chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalProcessSupported && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks"
},
{
"key": "alt+enter",
"command": "-workbench.action.terminal.chat.insertCommand",
"when": "chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalHasBeenCreated && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks || chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalProcessSupported && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks"
},
{
"key": "ctrl+alt+enter",
"command": "-workbench.action.terminal.chat.insertFirstCommand",
"when": "chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalHasBeenCreated && !terminalChatActiveRequest || chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalProcessSupported && !terminalChatActiveRequest"
},
{
"key": "alt+enter",
"command": "-workbench.action.terminal.chat.insertFirstCommand",
"when": "chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalHasBeenCreated && !terminalChatActiveRequest || chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalProcessSupported && !terminalChatActiveRequest"
},
{
"key": "ctrl+shift+y",
"command": "-inlineChat2.keep",
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress"
},
{
"key": "f7",
"command": "-inlineChat.moveToNextHunk",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "shift+f7",
"command": "-inlineChat.moveToPreviousHunk",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.terminal.chat.runCommand",
"when": "chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalHasBeenCreated && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks || chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalProcessSupported && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.terminal.chat.runFirstCommand",
"when": "chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalHasBeenCreated && !terminalChatActiveRequest || chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalProcessSupported && !terminalChatActiveRequest"
},
{
"key": "ctrl+shift+n",
"command": "-inlineChat2.undo",
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress"
},
{
"key": "y",
"command": "-notebook.cell.changeToCode",
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'markup'"
},
{
"key": "m",
"command": "-notebook.cell.changeToMarkdown",
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'code'"
},
{
"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": "ctrl+enter",
"command": "-notebook.cell.insertCodeCellBelow",
"when": "notebookCellListFocused && !inputFocus && notebookChatOuterFocusPosition == ''"
},
{
"key": "meta+enter",
"command": "-notebook.cell.quitEdit",
"when": "inputFocus && notebookEditorFocused && !inlineChatFocused && notebookCellType == 'markup'"
},
{
"key": "ctrl+up",
"command": "-chat.action.focus",
"when": "chatCursorAtTop && inChatInput && !quickChatHasFocus"
},
{
"key": "ctrl+up",
"command": "-chat.action.focus",
"when": "inChatInput && isLinux && !quickChatHasFocus || inChatInput && isWindows && !quickChatHasFocus"
},
{
"key": "ctrl+down",
"command": "-chat.action.focus",
"when": "inChat && inChatInput && quickChatHasFocus"
},
{
"key": "ctrl+c",
"command": "-chat.inlineResourceAnchor.copyResource",
"when": "chatAttachmentResource"
},
{
"key": "ctrl+enter",
"command": "-chat.inlineResourceAnchor.openToSide",
"when": "chatAttachmentResource"
},
{
"key": "ctrl+enter",
"command": "-chatEditing.acceptAllFiles",
"when": "hasUndecidedChatEditingResource && inChatInput && !chatSessionRequestInProgress"
},
{
"key": "ctrl+backspace",
"command": "-chatEditing.discardAllFiles",
"when": "hasUndecidedChatEditingResource && inChatInput && !chatInputHasText && !chatSessionRequestInProgress"
},
{
"key": "shift+alt+f7",
"command": "-chatEditor.action.toggleDiff",
"when": "chatEdits.hasEditorModifications && editorFocus"
},
{
"key": "ctrl+down",
"command": "-inlineChat.arrowOutDown",
"when": "inlineChatFocused && inlineChatHasProvider && inlineChatInnerCursorLast && !accessibilityModeEnabled && !isEmbeddedDiffEditor"
},
{
"key": "ctrl+up",
"command": "-inlineChat.arrowOutUp",
"when": "inlineChatFocused && inlineChatHasProvider && inlineChatInnerCursorFirst && !accessibilityModeEnabled && !isEmbeddedDiffEditor"
},
{
"key": "escape",
"command": "-inlineChat.close",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "escape",
"command": "-inlineChat.discardHunkChange",
"when": "inlineChatHasProvider && inlineChatVisible && inlineChatResponseType == 'messagesAndEdits'"
},
{
"key": "escape",
"command": "-inlineChat.hideHint",
"when": "inlineChatShowingHint"
},
{
"key": "ctrl+r",
"command": "-inlineChat.regenerate",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "ctrl+z",
"command": "-inlineChat.unstash",
"when": "inlineChatHasStashedSession && !editorReadonly"
},
{
"key": "ctrl+down",
"command": "-inlineChat.viewInChat",
"when": "inChatInput && inlineChatHasProvider && inlineChatVisible"
},
{
"key": "enter",
"command": "-notebook.cell.chat.accept",
"when": "inlineChatFocused && notebookCellChatFocused && !notebookCellEditorFocused"
},
{
"key": "escape",
"command": "-notebook.cell.chat.acceptChanges",
"when": "inlineChatFocused && notebookCellChatFocused && notebookChatUserDidEdit && !notebookCellEditorFocused"
},
{
"key": "ctrl+enter",
"command": "-notebook.cell.chat.acceptChanges",
"when": "inlineChatFocused && notebookCellChatFocused && !notebookCellEditorFocused"
},
{
"key": "ctrl+enter",
"command": "-notebook.cell.chat.acceptChanges",
"when": "notebookEditorFocused && !inputFocus && !notebookCellEditorFocused && notebookChatOuterFocusPosition == 'below'"
},
{
"key": "ctrl+down",
"command": "-notebook.cell.chat.arrowOutDown",
"when": "inlineChatFocused && inlineChatInnerCursorLast && notebookCellChatFocused && !accessibilityModeEnabled && !notebookCellEditorFocused"
},
{
"key": "ctrl+up",
"command": "-notebook.cell.chat.arrowOutUp",
"when": "inlineChatFocused && inlineChatInnerCursorFirst && notebookCellChatFocused && !accessibilityModeEnabled && !notebookCellEditorFocused"
},
{
"key": "escape",
"command": "-notebook.cell.chat.discard",
"when": "inlineChatFocused && notebookCellChatFocused && !notebookCellEditorFocused && !notebookChatUserDidEdit"
},
{
"key": "ctrl+down",
"command": "-notebook.cell.chat.focus",
"when": "notebookEditorFocused && !inputFocus && notebookChatOuterFocusPosition == 'above'"
},
{
"key": "ctrl+up",
"command": "-notebook.cell.chat.focus",
"when": "notebookEditorFocused && !inputFocus && notebookChatOuterFocusPosition == 'below'"
},
{
"key": "ctrl+down",
"command": "-notebook.cell.chat.focusNextCell",
"when": "inlineChatFocused && notebookCellChatFocused"
},
{
"key": "ctrl+up",
"command": "-notebook.cell.chat.focusPreviousCell",
"when": "inlineChatFocused && notebookCellChatFocused"
},
{
"key": "down",
"command": "-notebook.cell.chat.nextFromHistory",
"when": "inlineChatFocused && notebookCellChatFocused"
},
{
"key": "up",
"command": "-notebook.cell.chat.previousFromHistory",
"when": "inlineChatFocused && notebookCellChatFocused"
},
{
"key": "ctrl+up",
"command": "-notebook.cell.focusChatWidget",
"when": "editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtBoundary != 'bottom' && notebookEditorCursorAtBoundary != 'none'"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.acceptTool",
"when": "chatHasToolConfirmation && inChat"
},
{
"key": "ctrl+/",
"command": "-workbench.action.chat.attachContext",
"when": "inChatInput && chatLocation == 'panel'"
},
{
"key": "ctrl+escape",
"command": "-workbench.action.chat.cancel"
},
{
"key": "enter",
"command": "-workbench.action.chat.editRequests",
"when": "inChat && !textInputFocus"
},
{
"key": "ctrl+down",
"command": "-workbench.action.chat.focusInput",
"when": "inChat && !inChatInput && !quickChatHasFocus"
},
{
"key": "ctrl+up",
"command": "-workbench.action.chat.focusInput",
"when": "inChat && quickChatHasFocus && !inChatInput"
},
{
"key": "ctrl+alt+.",
"command": "-workbench.action.chat.openModelPicker",
"when": "chatIsEnabled && inChatInput"
},
{
"key": "ctrl+.",
"command": "-workbench.action.chat.openModePicker",
"when": "chatIsEnabled && inChatInput && chatLocation == 'panel'"
},
{
"key": "delete",
"command": "-workbench.action.chat.restoreCheckpoint",
"when": "inChat && !textInputFocus"
},
{
"key": "ctrl+alt+meta+/",
"command": "-workbench.action.chat.run-in-new-chat.prompt.current",
"when": "chatIsEnabled && config.chat.promptFiles && editorTextFocus && resourceSet && resourceLangId == 'prompt'"
},
{
"key": "alt+meta+/",
"command": "-workbench.action.chat.run.prompt.current",
"when": "chatIsEnabled && config.chat.promptFiles && editorTextFocus && resourceSet && resourceLangId == 'prompt'"
},
{
"key": "ctrl+shift+enter",
"command": "-workbench.action.chat.sendToNewChat",
"when": "chatInputHasText && chatRequestIsPaused && inChatInput || chatInputHasText && inChatInput && !chatSessionRequestInProgress || chatPromptFileAttached && chatRequestIsPaused && inChatInput || chatPromptFileAttached && inChatInput && !chatSessionRequestInProgress"
},
{
"key": "escape",
"command": "-workbench.action.chat.stopReadChatItemAloud",
"when": "scopedChatSynthesisInProgress"
},
{
"key": "enter",
"command": "-workbench.action.chat.submit",
"when": "inChatInput"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.submitWithCodebase",
"when": "chatInputHasText && chatRequestIsPaused && inChatInput || chatInputHasText && inChatInput && !chatSessionRequestInProgress || chatPromptFileAttached && chatRequestIsPaused && inChatInput || chatPromptFileAttached && inChatInput && !chatSessionRequestInProgress"
},
{
"key": "shift+alt+enter",
"command": "-workbench.action.chat.submitWithoutDispatching",
"when": "chatInputHasText && chatRequestIsPaused && inChatInput && chatMode == 'ask' || chatInputHasText && inChatInput && !chatSessionRequestInProgress && chatMode == 'ask' || chatPromptFileAttached && chatRequestIsPaused && inChatInput && chatMode == 'ask' || chatPromptFileAttached && inChatInput && !chatSessionRequestInProgress && chatMode == 'ask'"
},
{
"key": "delete",
"command": "-workbench.action.chat.undoEdits",
"when": "inChat && !textInputFocus"
},
{
"key": "ctrl+shift+alt+l",
"command": "-workbench.action.quickchat.toggle",
"when": "chatIsEnabled"
},
{
"key": "ctrl+r",
"command": "-workbench.action.terminal.chat.rerunRequest",
"when": "chatIsEnabled && terminalChatFocus && terminalHasBeenCreated && !terminalChatActiveRequest || chatIsEnabled && terminalChatFocus && terminalProcessSupported && !terminalChatActiveRequest"
},
{
"key": "escape",
"command": "-workbench.edit.chat.cancel",
"when": "chatSessionCurrentlyEditing && inChatInput && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible || chatSessionCurrentlyEditingInput && inChatInput && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible"
},
{
"key": "ctrl+i",
"command": "tsimporter.addImport",
"when": "editorTextFocus"
},
{
"key": "shift+meta+s",
"command": "workbench.action.openSettingsJson"
},
{
"key": "alt+a",
"command": "editor.action.joinLines"
},
{
"key": "ctrl+j",
"command": "-workbench.action.togglePanel"
},
{
"key": "alt+s",
"command": "-markdown.extension.editing.toggleStrikethrough",
"when": "editorTextFocus && !editorReadonly && editorLangId =~ /^markdown$|^rmd$|^quarto$/"
},
{
"key": "ctrl+alt+s",
"command": "workbench.action.openSettings2"
},
{
"key": "alt+z",
"command": "-editor.action.toggleWordWrap"
},
{
"key": "alt+z",
"command": "-workbench.action.terminal.sizeToContentWidth",
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen || terminalFocus && terminalIsOpen && terminalProcessSupported"
},
{
"key": "ctrl+shift+f",
"command": "workbench.action.findInFiles"
},
{
"key": "ctrl+shift+f",
"command": "-workbench.action.findInFiles"
},
{
"key": "ctrl+alt+p",
"command": "markdown.showPreviewToSide",
"when": "!notebookEditorFocused && editorLangId == 'markdown'"
},
{
"key": "ctrl+k v",
"command": "-markdown.showPreviewToSide",
"when": "!notebookEditorFocused && editorLangId == 'markdown'"
},
{
"key": "ctrl+alt+left",
"command": "workbench.action.navigatePreviousInEditLocations"
},
{
"key": "ctrl+alt+left",
"command": "-workbench.action.moveEditorToPreviousGroup"
},
{
"key": "f3",
"command": "workbench.action.debug.stepInto",
"when": "debugState != 'inactive'"
},
{
"key": "f11",
"command": "-workbench.action.debug.stepInto",
"when": "debugState != 'inactive'"
},
{
"key": "f2",
"command": "workbench.action.debug.stepOver",
"when": "debugState == 'stopped'"
},
{
"key": "f10",
"command": "-workbench.action.debug.stepOver",
"when": "debugState == 'stopped'"
},
{
"key": "f1",
"command": "workbench.action.debug.continue",
"when": "debugState == 'stopped'"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "debugState == 'stopped'"
},
{
"key": "f4",
"command": "workbench.action.debug.stepOut",
"when": "debugState == 'stopped'"
},
{
"key": "shift+f11",
"command": "-workbench.action.debug.stepOut",
"when": "debugState == 'stopped'"
},
{
"key": "alt+b",
"command": "-extension.toggleBool",
"when": "editorTextFocus"
},
{
"key": "alt+a",
"command": "-editor.action.accessibilityHelpConfigureAssignedKeybindings",
"when": "accessibilityHelpIsShown && accessibleViewHasAssignedKeybindings"
},
{
"key": "ctrl+alt+l",
"command": "workbench.action.toggleLockedScrolling"
},
{
"key": "escape",
"command": "workbench.files.action.focusFilesExplorer",
"when": "searchViewletVisible"
//"when": "searchResultListFocused"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment