Skip to content

Commit ab60c62

Browse files
authored
Merge pull request #164 from codebling/update-default-keybindings-2025-07-11-01-44
Update for VSCode 1.102.0
2 parents 153deff + 2fab29e commit ab60c62

6 files changed

+238
-78
lines changed

linux.keybindings.json

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Default Keybindings of Visual Studio Code 1.101.2 for Linux
1+
// Default Keybindings of Visual Studio Code 1.102.0 for Linux
22

33
[
44
{ "key": "escape escape", "command": "workbench.action.exitZenMode",
@@ -139,6 +139,8 @@
139139
"when": "inputFocus && notebookEditorFocused && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible && !inlineChatFocused" },
140140
{ "key": "meta+enter", "command": "notebook.cell.quitEdit",
141141
"when": "inputFocus && notebookEditorFocused && !inlineChatFocused && notebookCellType == 'markup'" },
142+
{ "key": "escape", "command": "workbench.edit.chat.cancel",
143+
"when": "chatSessionCurrentlyEditing && inChatInput && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible || chatSessionCurrentlyEditingInput && inChatInput && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible" },
142144
{ "key": "ctrl+f", "command": "actions.find",
143145
"when": "editorFocus || editorIsOpen" },
144146
{ "key": "enter", "command": "breakpointWidget.action.acceptInput",
@@ -484,9 +486,9 @@
484486
{ "key": "ctrl+shift+v", "command": "notebook.cell.pasteAbove",
485487
"when": "notebookEditorFocused && !inputFocus" },
486488
{ "key": "down", "command": "notebook.focusNextEditor",
487-
"when": "config.notebook.navigation.allowNavigateToSurroundingCells && editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtBoundary != 'none' && notebookEditorCursorAtBoundary != 'top'" },
489+
"when": "config.notebook.navigation.allowNavigateToSurroundingCells && editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtLineBoundary == 'both' && notebookEditorCursorAtBoundary != 'none' && notebookEditorCursorAtBoundary != 'top' || config.notebook.navigation.allowNavigateToSurroundingCells && editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtLineBoundary == 'end' && notebookEditorCursorAtBoundary != 'none' && notebookEditorCursorAtBoundary != 'top'" },
488490
{ "key": "up", "command": "notebook.focusPreviousEditor",
489-
"when": "config.notebook.navigation.allowNavigateToSurroundingCells && editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtBoundary != 'bottom' && notebookEditorCursorAtBoundary != 'none'" },
491+
"when": "config.notebook.navigation.allowNavigateToSurroundingCells && editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtLineBoundary == 'both' && notebookEditorCursorAtBoundary != 'bottom' && notebookEditorCursorAtBoundary != 'none' || config.notebook.navigation.allowNavigateToSurroundingCells && editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtLineBoundary == 'start' && notebookEditorCursorAtBoundary != 'bottom' && notebookEditorCursorAtBoundary != 'none'" },
490492
{ "key": "ctrl+shift+i", "command": "notebook.formatCell",
491493
"when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'" },
492494
{ "key": "ctrl+enter", "command": "openReferenceToSide",
@@ -856,12 +858,8 @@
856858
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0' || inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.hasEditorModifications && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0'" },
857859
{ "key": "escape", "command": "inlineChat2.close",
858860
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.hasEditorModifications && !chatEdits.isRequestInProgress || inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0'" },
859-
{ "key": "ctrl+enter", "command": "inlineChat2.keep",
860-
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress" },
861861
{ "key": "ctrl+i", "command": "inlineChat2.reveal",
862862
"when": "inlineChatHasEditsAgent && !chatEdits.isGlobalEditingSession && chatEdits.requestCount >= 1" },
863-
{ "key": "ctrl+backspace", "command": "inlineChat2.undo",
864-
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress" },
865863
{ "key": "ctrl+up", "command": "interactive.history.focus",
866864
"when": "isCompositeNotebook && isLinux && !notebookEditorFocused || isCompositeNotebook && isWindows && !notebookEditorFocused" },
867865
{ "key": "down", "command": "interactive.history.next",
@@ -1263,14 +1261,14 @@
12631261
{ "key": "ctrl+alt+/", "command": "workbench.action.chat.attach.instructions",
12641262
"when": "chatIsEnabled && config.chat.promptFiles" },
12651263
{ "key": "ctrl+escape", "command": "workbench.action.chat.cancel" },
1264+
{ "key": "enter", "command": "workbench.action.chat.editRequests",
1265+
"when": "inChat && !textInputFocus" },
12661266
{ "key": "ctrl+down", "command": "workbench.action.chat.focusInput",
12671267
"when": "inChat && !inChatInput && !quickChatHasFocus" },
12681268
{ "key": "ctrl+up", "command": "workbench.action.chat.focusInput",
12691269
"when": "inChat && quickChatHasFocus && !inChatInput" },
12701270
{ "key": "ctrl+i", "command": "workbench.action.chat.holdToVoiceChatInChatView",
1271-
"when": "chatIsEnabled && hasSpeechProvider && !chatSessionRequestInProgress && !editorFocus && !inChatInput && !inlineChatFocused && !notebookEditorFocused && !searchViewletFocus" },
1272-
{ "key": "ctrl+l", "command": "workbench.action.chat.newChat",
1273-
"when": "chatEditingParticipantRegistered && chatIsEnabled && inChat" },
1271+
"when": "chatIsEnabled && hasSpeechProvider && !chatSessionRequestInProgress && !editorFocus && !inChatInput && !inSettingsEditor && !inlineChatFocused && !notebookEditorFocused && !searchViewletFocus" },
12741272
{ "key": "ctrl+alt+pagedown", "command": "workbench.action.chat.nextCodeBlock",
12751273
"when": "chatIsEnabled && inChat" },
12761274
{ "key": "ctrl+f9", "command": "workbench.action.chat.nextFileTree",
@@ -1583,6 +1581,18 @@
15831581
{ "key": "shift+enter", "command": "workbench.action.terminal.sendSequence",
15841582
"when": "terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh'",
15851583
"args": {"text":"\u001b[24~c"} },
1584+
{ "key": "alt+up", "command": "workbench.action.terminal.sendSequence",
1585+
"when": "terminalFocus",
1586+
"args": {"text":"\u001b[1;5A"} },
1587+
{ "key": "alt+down", "command": "workbench.action.terminal.sendSequence",
1588+
"when": "terminalFocus",
1589+
"args": {"text":"\u001b[1;5B"} },
1590+
{ "key": "alt+right", "command": "workbench.action.terminal.sendSequence",
1591+
"when": "terminalFocus",
1592+
"args": {"text":"\u001b[1;5C"} },
1593+
{ "key": "alt+left", "command": "workbench.action.terminal.sendSequence",
1594+
"when": "terminalFocus",
1595+
"args": {"text":"\u001b[1;5D"} },
15861596
{ "key": "ctrl+alt+r", "command": "workbench.action.terminal.sendSequence",
15871597
"when": "accessibilityModeEnabled && terminalFocus",
15881598
"args": {"text":"\u0012"} },
@@ -1728,14 +1738,20 @@
17281738
"when": "focusedView != ''" },
17291739
{ "key": "ctrl+enter", "command": "workbench.action.chat.acceptTool",
17301740
"when": "chatHasToolConfirmation && inChat" },
1741+
{ "key": "ctrl+l", "command": "workbench.action.chat.newChat",
1742+
"when": "chatEditingParticipantRegistered && chatIsEnabled && inChat" },
1743+
{ "key": "ctrl+n", "command": "workbench.action.chat.newChat",
1744+
"when": "chatEditingParticipantRegistered && chatIsEnabled && inChat" },
17311745
{ "key": "ctrl+pagedown", "command": "workbench.action.debug.nextConsole",
17321746
"when": "inDebugRepl" },
17331747
{ "key": "ctrl+pageup", "command": "workbench.action.debug.prevConsole",
17341748
"when": "inDebugRepl" },
1735-
{ "key": "tab", "command": "workbench.action.terminal.acceptSelectedSuggestion",
1736-
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
1749+
{ "key": "ctrl+n", "command": "workbench.action.openChat",
1750+
"when": "chatIsEnabled && inChat && inChatEditor" },
1751+
{ "key": "enter", "command": "workbench.action.terminal.acceptSelectedSuggestion",
1752+
"when": "simpleSuggestWidgetHasNavigated && terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || simpleSuggestWidgetHasNavigated && terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible || terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible && !simpleSuggestWidgetFirstSuggestionFocused || terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.selectionMode != 'partial' || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible && !simpleSuggestWidgetFirstSuggestionFocused || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.selectionMode != 'partial'" },
17371753
{ "key": "enter", "command": "workbench.action.terminal.acceptSelectedSuggestionEnter",
1738-
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.runOnEnter != 'ignore' || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.runOnEnter != 'ignore'" },
1754+
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.runOnEnter != 'never' || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.runOnEnter != 'never'" },
17391755
{ "key": "escape", "command": "workbench.action.terminal.hideSuggestWidget",
17401756
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
17411757
{ "key": "ctrl+shift+o", "command": "workbench.action.terminal.openDetectedLink",
@@ -1752,10 +1768,14 @@
17521768
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
17531769
{ "key": "up", "command": "workbench.action.terminal.selectPrevSuggestion",
17541770
"when": "simpleSuggestWidgetHasNavigated && terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || simpleSuggestWidgetHasNavigated && terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible || terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible && !config.terminal.integrated.suggest.upArrowNavigatesHistory || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible && !config.terminal.integrated.suggest.upArrowNavigatesHistory" },
1771+
{ "key": "ctrl+shift+l", "command": "workbench.action.terminal.suggestLearnMore",
1772+
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
17551773
{ "key": "tab", "command": "editor.action.inlineSuggest.commit",
17561774
"when": "inInlineEditsPreviewEditor" },
17571775
{ "key": "f6", "command": "workbench.action.debug.pause",
17581776
"when": "debugState == 'running'" },
1777+
{ "key": "tab", "command": "workbench.action.terminal.acceptSelectedSuggestion",
1778+
"when": "simpleSuggestWidgetHasFocusedSuggestion && terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || simpleSuggestWidgetHasFocusedSuggestion && terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
17591779
{ "key": "alt+down", "command": "workbench.action.terminal.accessibleBufferGoToNextCommand",
17601780
"when": "accessibleViewIsShown && accessibleViewCurrentProviderId == 'terminal' || accessibleViewIsShown && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal' || accessibleViewIsShown && terminalProcessSupported && accessibleViewCurrentProviderId == 'terminal'" },
17611781
{ "key": "alt+up", "command": "workbench.action.terminal.accessibleBufferGoToPreviousCommand",
@@ -1778,6 +1798,8 @@
17781798
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceReadonly && !inputFocus" },
17791799
{ "key": "ctrl+shift+y", "command": "chatEditor.action.accept",
17801800
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress" },
1801+
{ "key": "ctrl+alt+y", "command": "chatEditor.action.acceptAllEdits",
1802+
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress" },
17811803
{ "key": "ctrl+shift+n", "command": "chatEditor.action.reject",
17821804
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress" },
17831805
{ "key": "shift+delete", "command": "deleteFile",
@@ -1811,6 +1833,10 @@
18111833
"when": "explorerViewletCompressedFocus && filesExplorerFocus && foldersViewVisible && !explorerViewletCompressedFirstFocus && !inputFocus" },
18121834
{ "key": "ctrl+enter", "command": "inlineChat.acceptChanges",
18131835
"when": "inlineChatHasProvider && inlineChatVisible" },
1836+
{ "key": "ctrl+shift+y", "command": "inlineChat2.keep",
1837+
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress" },
1838+
{ "key": "ctrl+shift+n", "command": "inlineChat2.undo",
1839+
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress" },
18141840
{ "key": "end", "command": "lastCompressedFolder",
18151841
"when": "explorerViewletCompressedFocus && filesExplorerFocus && foldersViewVisible && !explorerViewletCompressedLastFocus && !inputFocus" },
18161842
{ "key": "ctrl+shift+t", "command": "mergeEditor.toggleBetweenInputs",

0 commit comments

Comments
 (0)