Skip to content

Commit b28e231

Browse files
authored
Merge pull request #147 from codebling/update-default-keybindings-2025-03-06-01-21
Update for VSCode 1.98.0
2 parents 5838f82 + 7e9ae23 commit b28e231

6 files changed

+240
-144
lines changed

linux.keybindings.json

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Default Keybindings of Visual Studio Code 1.97.2 for Linux
1+
// Default Keybindings of Visual Studio Code 1.98.0 for Linux
22

33
[
44
{ "key": "escape escape", "command": "workbench.action.exitZenMode",
@@ -526,23 +526,25 @@
526526
{ "key": "ctrl+k ctrl+alt+c", "command": "workbench.action.addComment",
527527
"when": "activeCursorHasCommentingRange" },
528528
{ "key": "ctrl+/", "command": "workbench.action.chat.attachContext",
529-
"when": "inChatInput && chatLocation == 'editing-session' || inChatInput && chatLocation == 'editor' || inChatInput && chatLocation == 'notebook' || inChatInput && chatLocation == 'panel' || inChatInput && chatLocation == 'terminal'" },
529+
"when": "inChatInput && chatLocation == 'editor' && chatLocation != 'editing-session' || inChatInput && chatLocation == 'notebook' && chatLocation != 'editing-session' || inChatInput && chatLocation == 'panel' && chatLocation != 'editing-session' || inChatInput && chatLocation == 'terminal' && chatLocation != 'editing-session'" },
530+
{ "key": "ctrl+/", "command": "workbench.action.chat.editing.attachFiles",
531+
"when": "inChatInput && chatLocation == 'editing-session'" },
530532
{ "key": "ctrl+alt+enter", "command": "workbench.action.chat.runInTerminal",
531533
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat" },
532534
{ "key": "enter", "command": "workbench.action.chat.submit",
533-
"when": "chatInputHasText && inChatInput && !chatSessionRequestInProgress && chatLocation != 'editing-session' || chatInstructionsAttached && inChatInput && !chatSessionRequestInProgress && chatLocation != 'editing-session'" },
535+
"when": "chatInputHasText && chatRequestIsPaused && inChatInput && chatLocation != 'editing-session' || chatInputHasText && inChatInput && !chatSessionRequestInProgress && chatLocation != 'editing-session' || chatInstructionsAttached && chatRequestIsPaused && inChatInput && chatLocation != 'editing-session' || chatInstructionsAttached && inChatInput && !chatSessionRequestInProgress && chatLocation != 'editing-session'" },
534536
{ "key": "ctrl+enter", "command": "workbench.action.chat.submitSecondaryAgent",
535537
"when": "chatInputHasText && chatRequestIsPaused && inChatInput && !chatInputHasAgent || chatInputHasText && inChatInput && !chatInputHasAgent && !chatSessionRequestInProgress || chatInstructionsAttached && chatRequestIsPaused && inChatInput && !chatInputHasAgent || chatInstructionsAttached && inChatInput && !chatInputHasAgent && !chatSessionRequestInProgress" },
536538
{ "key": "shift+alt+enter", "command": "workbench.action.chat.submitWithoutDispatching",
537539
"when": "chatInputHasText && chatRequestIsPaused && inChatInput && chatLocation == 'editor' || chatInputHasText && chatRequestIsPaused && inChatInput && chatLocation == 'panel' || chatInputHasText && inChatInput && !chatSessionRequestInProgress && chatLocation == 'editor' || chatInputHasText && inChatInput && !chatSessionRequestInProgress && chatLocation == 'panel' || chatInstructionsAttached && chatRequestIsPaused && inChatInput && chatLocation == 'editor' || chatInstructionsAttached && chatRequestIsPaused && inChatInput && chatLocation == 'panel' || chatInstructionsAttached && inChatInput && !chatSessionRequestInProgress && chatLocation == 'editor' || chatInstructionsAttached && inChatInput && !chatSessionRequestInProgress && chatLocation == 'panel'" },
538540
{ "key": "ctrl+.", "command": "workbench.action.chat.toggleAgentMode",
539541
"when": "chatHasToolsAgent && inChatInput && !chatSessionRequestInProgress && chatLocation == 'editing-session'" },
540542
{ "key": "alt+f5", "command": "workbench.action.editor.nextChange",
541-
"when": "editorTextFocus && !textCompareEditorActive" },
543+
"when": "editorTextFocus && !textCompareEditorActive && quickDiffDecorationCount != '0'" },
542544
{ "key": "shift+alt+f5", "command": "workbench.action.editor.previousChange",
543-
"when": "editorTextFocus && !textCompareEditorActive" },
545+
"when": "editorTextFocus && !textCompareEditorActive && quickDiffDecorationCount != '0'" },
544546
{ "key": "enter", "command": "workbench.action.edits.submit",
545-
"when": "chatInputHasText && inChatInput && !isApplyingChatEdits && chatLocation == 'editing-session' || chatInstructionsAttached && inChatInput && !isApplyingChatEdits && chatLocation == 'editing-session'" },
547+
"when": "chatInputHasText && chatRequestIsPaused && inChatInput && chatLocation == 'editing-session' || chatInputHasText && inChatInput && !chatSessionRequestInProgress && chatLocation == 'editing-session' || chatInstructionsAttached && chatRequestIsPaused && inChatInput && chatLocation == 'editing-session' || chatInstructionsAttached && inChatInput && !chatSessionRequestInProgress && chatLocation == 'editing-session'" },
546548
{ "key": "shift+escape", "command": "workbench.action.hideComment",
547549
"when": "commentEditorFocused || commentFocused" },
548550
{ "key": "escape", "command": "workbench.action.hideComment",
@@ -673,6 +675,8 @@
673675
"when": "renameInputVisible" },
674676
{ "key": "up", "command": "focusPreviousRenameSuggestion",
675677
"when": "renameInputVisible" },
678+
{ "key": "ctrl+k ctrl+i", "command": "workbench.action.showHover",
679+
"when": "!editorTextFocus" },
676680
{ "key": "ctrl+shift+l", "command": "addCursorsAtSearchResults",
677681
"when": "fileMatchOrMatchFocus && searchViewletVisible" },
678682
{ "key": "ctrl+shift+;", "command": "breadcrumbs.focus",
@@ -712,19 +716,21 @@
712716
{ "key": "ctrl+backspace", "command": "chatEditing.discardAllFiles",
713717
"when": "hasUndecidedChatEditingResource && inChatInput && !chatInputHasText && !chatSessionRequestInProgress && chatLocation == 'editing-session'" },
714718
{ "key": "ctrl+enter", "command": "chatEditor.action.accept",
715-
"when": "chat.hasEditorModifications && editorFocus && hasUndecidedChatEditingResource" },
719+
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" },
716720
{ "key": "ctrl+shift+enter", "command": "chatEditor.action.acceptHunk",
717-
"when": "chat.hasEditorModifications && editorFocus && hasUndecidedChatEditingResource && !chatSessionRequestInProgress" },
718-
{ "key": "shift+alt+f7", "command": "chatEditor.action.diffHunk",
719-
"when": "chat.hasEditorModifications && editorFocus && hasUndecidedChatEditingResource && !chatSessionRequestInProgress" },
721+
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" },
720722
{ "key": "alt+f5", "command": "chatEditor.action.navigateNext",
721-
"when": "chat.hasEditorModifications && editorFocus || chat.hasNotebookEditorModifications && editorFocus" },
723+
"when": "chat.hasNotebookEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" },
722724
{ "key": "shift+alt+f5", "command": "chatEditor.action.navigatePrevious",
723-
"when": "chat.hasEditorModifications && editorFocus || chat.hasNotebookEditorModifications && editorFocus" },
725+
"when": "chat.hasNotebookEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" },
724726
{ "key": "ctrl+backspace", "command": "chatEditor.action.reject",
725-
"when": "chat.hasEditorModifications && editorFocus && hasUndecidedChatEditingResource" },
727+
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" },
728+
{ "key": "f7", "command": "chatEditor.action.showAccessibleDiffView",
729+
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" },
730+
{ "key": "shift+alt+f7", "command": "chatEditor.action.toggleDiff",
731+
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" },
726732
{ "key": "ctrl+shift+backspace", "command": "chatEditor.action.undoHunk",
727-
"when": "chat.hasEditorModifications && editorFocus && hasUndecidedChatEditingResource && !chatSessionRequestInProgress" },
733+
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" },
728734
{ "key": "escape", "command": "closeReplaceInFilesWidget",
729735
"when": "replaceInputBoxFocus && searchViewletVisible" },
730736
{ "key": "escape", "command": "commentsClearFilterText",
@@ -749,6 +755,8 @@
749755
"when": "accessibilityModeEnabled && isWindows && textInputFocus && focusedView == 'workbench.panel.output'" },
750756
{ "key": "ctrl+shift+right", "command": "cursorWordAccessibilityRightSelect",
751757
"when": "accessibilityModeEnabled && isWindows && textInputFocus && focusedView == 'workbench.panel.output'" },
758+
{ "key": "ctrl+alt+c", "command": "debug.copyWatchExpression",
759+
"when": "watchExpressionsExist && !expressionSelected && focusedView == 'workbench.debug.watchExpressionsView'" },
752760
{ "key": "alt+enter", "command": "debug.openBreakpointToSide",
753761
"when": "breakpointsFocused" },
754762
{ "key": "ctrl+enter", "command": "debug.openBreakpointToSide",
@@ -835,29 +843,27 @@
835843
{ "key": "alt+=", "command": "increaseSearchEditorContextLines",
836844
"when": "inSearchEditor" },
837845
{ "key": "ctrl+i", "command": "inlineChat.holdForSpeech",
838-
"when": "hasSpeechProvider && inlineChatHasProvider && inlineChatVisible && textInputFocus" },
846+
"when": "hasSpeechProvider && inlineChatVisible && textInputFocus" },
839847
{ "key": "f7", "command": "inlineChat.moveToNextHunk",
840848
"when": "inlineChatHasProvider && inlineChatVisible" },
841849
{ "key": "shift+f7", "command": "inlineChat.moveToPreviousHunk",
842850
"when": "inlineChatHasProvider && inlineChatVisible" },
843851
{ "key": "ctrl+r", "command": "inlineChat.regenerate",
844852
"when": "inlineChatHasProvider && inlineChatVisible" },
845853
{ "key": "ctrl+i", "command": "inlineChat.start",
846-
"when": "editorFocus && inlineChatHasProvider && inlineChatPossible && !editorReadonly && !editorSimpleInput" },
854+
"when": "editorFocus && inlineChatHasEditsAgent && inlineChatPossible && !editorReadonly && !editorSimpleInput || editorFocus && inlineChatHasProvider && inlineChatPossible && !editorReadonly && !editorSimpleInput" },
847855
{ "key": "ctrl+k i", "command": "inlineChat.startWithCurrentLine",
848856
"when": "inlineChatHasProvider && !editorReadonly && !inlineChatVisible" },
849857
{ "key": "ctrl+z", "command": "inlineChat.unstash",
850858
"when": "inlineChatHasStashedSession && !editorReadonly" },
851859
{ "key": "ctrl+down", "command": "inlineChat.viewInChat",
852860
"when": "inChatInput && inlineChatHasProvider && inlineChatVisible" },
853861
{ "key": "ctrl+i", "command": "inlineChat2.reveal",
854-
"when": "inlineChatHasEditsAgent && inlineChatHasSession" },
855-
{ "key": "ctrl+i", "command": "inlineChat2.start",
856-
"when": "editorFocus && inlineChatHasEditsAgent && inlineChatPossible && !editorReadonly && !editorSimpleInput && !inlineChatHasSession" },
857-
{ "key": "ctrl+i", "command": "inlineChat2.stop",
858-
"when": "inlineChatHasEditsAgent && inlineChatVisible && inlineChatHasSession == 'empty'" },
862+
"when": "inlineChatHasEditsAgent && !chatEdits.isGlobalEditingSession && chatEdits.requestCount >= 1" },
859863
{ "key": "escape", "command": "inlineChat2.stop",
860-
"when": "inlineChatHasEditsAgent && inlineChatVisible && inlineChatHasSession == 'empty'" },
864+
"when": "inlineChatHasEditsAgent && inlineChatVisible" },
865+
{ "key": "ctrl+i", "command": "inlineChat2.stop",
866+
"when": "inlineChatHasEditsAgent && inlineChatVisible && chatEdits.requestCount == '0'" },
861867
{ "key": "ctrl+up", "command": "interactive.history.focus",
862868
"when": "isCompositeNotebook && isLinux && !notebookEditorFocused || isCompositeNotebook && isWindows && !notebookEditorFocused" },
863869
{ "key": "down", "command": "interactive.history.next",
@@ -952,6 +958,8 @@
952958
"when": "config.notebook.multiCursor.enabled && isNotebookMultiSelect && activeEditor == 'workbench.editor.notebook'" },
953959
{ "key": "ctrl+d", "command": "notebook.addFindMatchToSelection",
954960
"when": "config.notebook.multiCursor.enabled && notebookCellEditorFocused && activeEditor == 'workbench.editor.notebook'" },
961+
{ "key": "ctrl+k m", "command": "notebook.cell.changeLanguage",
962+
"when": "notebookCellEditable && notebookEditable && notebookEditorFocused" },
955963
{ "key": "y", "command": "notebook.cell.changeToCode",
956964
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'markup'" },
957965
{ "key": "m", "command": "notebook.cell.changeToMarkdown",
@@ -1129,6 +1137,8 @@
11291137
"when": "inQuickInput && quickInputType == 'quickPick'" },
11301138
{ "key": "alt+up", "command": "quickInput.previousSeparatorWithQuickAccessFallback",
11311139
"when": "inQuickInput && quickInputType == 'quickPick'" },
1140+
{ "key": "ctrl+space", "command": "quickInput.toggleHover",
1141+
"when": "inQuickInput && quickInputType == 'quickPick'" },
11321142
{ "key": "space", "command": "refactorPreview.toggleCheckedState",
11331143
"when": "listFocus && refactorPreview.enabled && !inputFocus && !treestickyScrollFocused" },
11341144
{ "key": "ctrl+alt+r", "command": "revealFileInOS",
@@ -1138,7 +1148,7 @@
11381148
{ "key": "ctrl+enter", "command": "scm.acceptInput",
11391149
"when": "scmRepository" },
11401150
{ "key": "escape", "command": "scm.clearInput",
1141-
"when": "scmRepository && !suggestWidgetVisible" },
1151+
"when": "scmRepository && !editorHasSelection && !suggestWidgetVisible" },
11421152
{ "key": "alt+down", "command": "scm.forceViewNextCommit",
11431153
"when": "scmRepository" },
11441154
{ "key": "alt+up", "command": "scm.forceViewPreviousCommit",
@@ -1449,6 +1459,8 @@
14491459
{ "key": "ctrl+k ctrl+\\", "command": "workbench.action.splitEditorUp" },
14501460
{ "key": "ctrl+shift+b", "command": "workbench.action.tasks.build",
14511461
"when": "taskCommandsRegistered" },
1462+
{ "key": "ctrl+shift+r", "command": "workbench.action.tasks.rerunForActiveTerminal",
1463+
"when": "taskTerminalActive && terminalFocus" },
14521464
{ "key": "escape", "command": "workbench.action.terminal.chat.close",
14531465
"when": "terminalChatFocus && terminalChatVisible || terminalChatVisible && terminalFocus" },
14541466
{ "key": "ctrl+alt+enter", "command": "workbench.action.terminal.chat.insertCommand",
@@ -1637,10 +1649,12 @@
16371649
"when": "bannerFocused" },
16381650
{ "key": "left", "command": "workbench.banner.focusPreviousAction",
16391651
"when": "bannerFocused" },
1652+
{ "key": "ctrl+alt+/", "command": "workbench.command.prompts.use",
1653+
"when": "config.chat.promptFiles" },
16401654
{ "key": "ctrl+shift+y", "command": "workbench.debug.action.toggleRepl",
16411655
"when": "workbench.panel.repl.view.active" },
16421656
{ "key": "ctrl+c", "command": "workbench.debug.viewlet.action.copyValue",
1643-
"when": "focusedView == 'workbench.debug.variablesView' || focusedView == 'workbench.debug.watchExpressionsView'" },
1657+
"when": "!expressionSelected && focusedView == 'workbench.debug.variablesView' || !expressionSelected && focusedView == 'workbench.debug.watchExpressionsView'" },
16441658
{ "key": "ctrl+k c", "command": "workbench.files.action.compareWithClipboard" },
16451659
{ "key": "ctrl+k d", "command": "workbench.files.action.compareWithSaved" },
16461660
{ "key": "ctrl+k e", "command": "workbench.files.action.focusOpenEditorsView",
@@ -1707,6 +1721,8 @@
17071721
"when": "focusedView != ''" },
17081722
{ "key": "ctrl+k up", "command": "views.moveViewUp",
17091723
"when": "focusedView != ''" },
1724+
{ "key": "ctrl+enter", "command": "workbench.action.chat.acceptTool",
1725+
"when": "chatHasToolConfirmation && inChat" },
17101726
{ "key": "ctrl+pagedown", "command": "workbench.action.debug.nextConsole",
17111727
"when": "inDebugRepl" },
17121728
{ "key": "ctrl+pageup", "command": "workbench.action.debug.prevConsole",

0 commit comments

Comments
 (0)