Skip to content

Commit 3f9907d

Browse files
authored
Merge pull request #120 from codebling/update-default-keybindings-2024-06-06-01-04
Update for VSCode 1.90.0
2 parents 278028b + 4bbcb7f commit 3f9907d

6 files changed

+516
-114
lines changed

linux.keybindings.json

Lines changed: 72 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Default Keybindings of Visual Studio Code 1.89.1 for Linux
1+
// Default Keybindings of Visual Studio Code 1.90.0 for Linux
22

33
[
44
{ "key": "escape escape", "command": "workbench.action.exitZenMode",
@@ -453,6 +453,10 @@
453453
"when": "isReadingLineWithInlayHints" },
454454
{ "key": "tab", "command": "insertSnippet",
455455
"when": "editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus && !inSnippetMode" },
456+
{ "key": "shift+enter", "command": "interactive.execute",
457+
"when": "config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.interactive'" },
458+
{ "key": "enter", "command": "interactive.execute",
459+
"when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.interactive'" },
456460
{ "key": "meta+enter", "command": "interactive.execute",
457461
"when": "activeEditor == 'workbench.editor.interactive'" },
458462
{ "key": "escape", "command": "notebook.cell.chat.discard",
@@ -504,6 +508,8 @@
504508
{ "key": "escape", "command": "welcome.goBack",
505509
"when": "inWelcome && activeEditor == 'gettingStartedPage'" },
506510
{ "key": "ctrl+k ctrl+alt+c", "command": "workbench.action.addComment" },
511+
{ "key": "ctrl+/", "command": "workbench.action.chat.attachContext",
512+
"when": "inChatInput" },
507513
{ "key": "ctrl+alt+enter", "command": "workbench.action.chat.runInTerminal",
508514
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat" },
509515
{ "key": "enter", "command": "workbench.action.chat.submit",
@@ -712,6 +718,10 @@
712718
"when": "!accessibilityHelpIsShown" },
713719
{ "key": "shift+alt+f1", "command": "editor.action.accessibilityHelp",
714720
"when": "!accessibilityHelpIsShown" },
721+
{ "key": "alt+k", "command": "editor.action.accessibilityHelpConfigureKeybindings",
722+
"when": "accessibilityHelpIsShown" },
723+
{ "key": "alt+h", "command": "editor.action.accessibilityHelpOpenHelpLink",
724+
"when": "accessibilityHelpIsShown" },
715725
{ "key": "alt+f2", "command": "editor.action.accessibleView" },
716726
{ "key": "shift+alt+f2", "command": "editor.action.accessibleView" },
717727
{ "key": "ctrl+/", "command": "editor.action.accessibleViewAcceptInlineCompletion",
@@ -862,6 +872,8 @@
862872
"when": "listFocus && !inputFocus && !treestickyScrollFocused" },
863873
{ "key": "ctrl+a", "command": "list.selectAll",
864874
"when": "listFocus && listSupportsMultiselect && !inputFocus && !treestickyScrollFocused" },
875+
{ "key": "ctrl+k ctrl+i", "command": "list.showHover",
876+
"when": "listFocus && !inputFocus && !treestickyScrollFocused" },
865877
{ "key": "space", "command": "list.toggleExpand",
866878
"when": "listFocus && !inputFocus && !treestickyScrollFocused" },
867879
{ "key": "ctrl+shift+enter", "command": "list.toggleSelection",
@@ -1001,6 +1013,46 @@
10011013
"when": "problemFocus" },
10021014
{ "key": "ctrl+.", "command": "problems.action.showQuickFixes",
10031015
"when": "problemFocus" },
1016+
{ "key": "ctrl+alt+home", "command": "quickInput.first",
1017+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1018+
{ "key": "ctrl+home", "command": "quickInput.first",
1019+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1020+
{ "key": "ctrl+alt+end", "command": "quickInput.last",
1021+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1022+
{ "key": "ctrl+end", "command": "quickInput.last",
1023+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1024+
{ "key": "ctrl+down", "command": "quickInput.next",
1025+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1026+
{ "key": "down", "command": "quickInput.next",
1027+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1028+
{ "key": "ctrl+alt+down", "command": "quickInput.nextSeparator",
1029+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1030+
{ "key": "alt+down", "command": "quickInput.nextSeparatorWithQuickAccessFallback",
1031+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1032+
{ "key": "ctrl+alt+pagedown", "command": "quickInput.pageNext",
1033+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1034+
{ "key": "ctrl+pagedown", "command": "quickInput.pageNext",
1035+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1036+
{ "key": "alt+pagedown", "command": "quickInput.pageNext",
1037+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1038+
{ "key": "pagedown", "command": "quickInput.pageNext",
1039+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1040+
{ "key": "ctrl+alt+pageup", "command": "quickInput.pagePrevious",
1041+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1042+
{ "key": "ctrl+pageup", "command": "quickInput.pagePrevious",
1043+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1044+
{ "key": "alt+pageup", "command": "quickInput.pagePrevious",
1045+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1046+
{ "key": "pageup", "command": "quickInput.pagePrevious",
1047+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1048+
{ "key": "ctrl+up", "command": "quickInput.previous",
1049+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1050+
{ "key": "up", "command": "quickInput.previous",
1051+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1052+
{ "key": "ctrl+alt+up", "command": "quickInput.previousSeparator",
1053+
"when": "inQuickInput && quickInputType == 'quickPick'" },
1054+
{ "key": "alt+up", "command": "quickInput.previousSeparatorWithQuickAccessFallback",
1055+
"when": "inQuickInput && quickInputType == 'quickPick'" },
10041056
{ "key": "space", "command": "refactorPreview.toggleCheckedState",
10051057
"when": "listFocus && refactorPreview.enabled && !inputFocus && !treestickyScrollFocused" },
10061058
{ "key": "ctrl+alt+r", "command": "revealFileInOS",
@@ -1095,8 +1147,7 @@
10951147
"when": "editorTextFocus" },
10961148
{ "key": "ctrl+; ctrl+o", "command": "testing.showMostRecentOutput",
10971149
"when": "testing.hasAnyResults" },
1098-
{ "key": "ctrl+; ctrl+shift+i", "command": "testing.toggleInlineCoverage",
1099-
"when": "testing.isTestCoverageOpen" },
1150+
{ "key": "ctrl+; ctrl+shift+i", "command": "testing.toggleInlineCoverage" },
11001151
{ "key": "ctrl+; ctrl+i", "command": "testing.toggleInlineTestOutput" },
11011152
{ "key": "alt+h", "command": "testing.toggleTestingPeekHistory",
11021153
"when": "testing.isPeekVisible" },
@@ -1125,7 +1176,7 @@
11251176
{ "key": "ctrl+down", "command": "workbench.action.chat.focusInput",
11261177
"when": "inChat && !inChatInput" },
11271178
{ "key": "ctrl+i", "command": "workbench.action.chat.holdToVoiceChatInChatView",
1128-
"when": "chatIsEnabled && hasSpeechProvider && !editorFocus && !inChatInput && !inlineChatFocused && !notebookEditorFocused" },
1179+
"when": "chatIsEnabled && hasSpeechProvider && !chatSessionRequestInProgress && !editorFocus && !inChatInput && !inlineChatFocused && !notebookEditorFocused" },
11291180
{ "key": "ctrl+l", "command": "workbench.action.chat.newChat",
11301181
"when": "chatIsEnabled && inChat" },
11311182
{ "key": "ctrl+alt+pagedown", "command": "workbench.action.chat.nextCodeBlock",
@@ -1142,9 +1193,9 @@
11421193
{ "key": "ctrl+shift+enter", "command": "workbench.action.chat.sendToNewChat",
11431194
"when": "chatInputHasText && inChatInput && !chatSessionRequestInProgress" },
11441195
{ "key": "ctrl+i", "command": "workbench.action.chat.startVoiceChat",
1145-
"when": "chatIsEnabled && hasSpeechProvider && inChatInput && !chatSessionRequestInProgress && !editorFocus && !inlineChatHasActiveRequest && !inlineVoiceChatInProgress && !notebookEditorFocused && !quickVoiceChatInProgress && !terminalChatActiveRequest && !terminalVoiceChatInProgress && !voiceChatGettingReady && !voiceChatInEditorInProgress && !voiceChatInViewInProgress || chatIsEnabled && hasSpeechProvider && inlineChatFocused && !chatSessionRequestInProgress && !editorFocus && !inlineChatHasActiveRequest && !inlineVoiceChatInProgress && !notebookEditorFocused && !quickVoiceChatInProgress && !terminalChatActiveRequest && !terminalVoiceChatInProgress && !voiceChatGettingReady && !voiceChatInEditorInProgress && !voiceChatInViewInProgress" },
1196+
"when": "chatIsEnabled && hasSpeechProvider && inChatInput && !chatSessionRequestInProgress && !editorFocus && !notebookEditorFocused && !scopedVoiceChatGettingReady && !speechToTextInProgress && !terminalChatActiveRequest || chatIsEnabled && hasSpeechProvider && inlineChatFocused && !chatSessionRequestInProgress && !editorFocus && !notebookEditorFocused && !scopedVoiceChatGettingReady && !speechToTextInProgress && !terminalChatActiveRequest" },
11461197
{ "key": "ctrl+i", "command": "workbench.action.chat.stopListeningAndSubmit",
1147-
"when": "chatIsEnabled && hasSpeechProvider && inChatInput && voiceChatInProgress || chatIsEnabled && hasSpeechProvider && inlineChatFocused && voiceChatInProgress" },
1198+
"when": "inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'terminal' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'view' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'terminal' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'view'" },
11481199
{ "key": "ctrl+w", "command": "workbench.action.closeActiveEditor" },
11491200
{ "key": "ctrl+k ctrl+w", "command": "workbench.action.closeAllEditors" },
11501201
{ "key": "ctrl+k ctrl+shift+w", "command": "workbench.action.closeAllGroups" },
@@ -1187,7 +1238,7 @@
11871238
{ "key": "ctrl+k m", "command": "workbench.action.editor.changeLanguageMode",
11881239
"when": "!notebookEditorFocused" },
11891240
{ "key": "ctrl+alt+v", "command": "workbench.action.editorDictation.start",
1190-
"when": "hasSpeechProvider && !editorDictation.inProgress && !editorReadonly" },
1241+
"when": "hasSpeechProvider && !editorReadonly && !speechToTextInProgress" },
11911242
{ "key": "ctrl+k p", "command": "workbench.action.files.copyPathOfActiveFile" },
11921243
{ "key": "ctrl+n", "command": "workbench.action.files.newUntitledFile" },
11931244
{ "key": "ctrl+o", "command": "workbench.action.files.openFile",
@@ -1296,8 +1347,6 @@
12961347
{ "key": "ctrl+t", "command": "workbench.action.showAllSymbols" },
12971348
{ "key": "f1", "command": "workbench.action.showCommands" },
12981349
{ "key": "ctrl+shift+p", "command": "workbench.action.showCommands" },
1299-
{ "key": "ctrl+k ctrl+i", "command": "workbench.action.showTreeHover",
1300-
"when": "customTreeView && listFocus && !inputFocus && !treestickyScrollFocused" },
13011350
{ "key": "ctrl+\\", "command": "workbench.action.splitEditor" },
13021351
{ "key": "ctrl+k ctrl+\\", "command": "workbench.action.splitEditorDown" },
13031352
{ "key": "ctrl+k ctrl+shift+\\", "command": "workbench.action.splitEditorInGroup",
@@ -1430,7 +1479,7 @@
14301479
"when": "terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh'",
14311480
"args": {"text":"\u001b[24~c"} },
14321481
{ "key": "ctrl+space", "command": "workbench.action.terminal.sendSequence",
1433-
"when": "config.terminal.integrated.shellIntegration.suggestEnabled && terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh'",
1482+
"when": "config.terminal.integrated.shellIntegration.suggestEnabled && terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh' || config.terminal.integrated.suggest.enabled && terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh'",
14341483
"args": {"text":"\u001b[24~e"} },
14351484
{ "key": "ctrl+alt+r", "command": "workbench.action.terminal.sendSequence",
14361485
"when": "accessibilityModeEnabled && terminalFocus",
@@ -1650,6 +1699,14 @@
16501699
"when": "treestickyScrollFocused" },
16511700
{ "key": "escape", "command": "notifications.hideList",
16521701
"when": "notificationCenterVisible" },
1702+
{ "key": "ctrl+alt+right", "command": "quickInput.acceptInBackground",
1703+
"when": "cursorAtEndOfQuickInputBox && inQuickInput && quickInputType == 'quickPick' || inQuickInput && !inputFocus && quickInputType == 'quickPick'" },
1704+
{ "key": "ctrl+right", "command": "quickInput.acceptInBackground",
1705+
"when": "cursorAtEndOfQuickInputBox && inQuickInput && quickInputType == 'quickPick' || inQuickInput && !inputFocus && quickInputType == 'quickPick'" },
1706+
{ "key": "alt+right", "command": "quickInput.acceptInBackground",
1707+
"when": "cursorAtEndOfQuickInputBox && inQuickInput && quickInputType == 'quickPick' || inQuickInput && !inputFocus && quickInputType == 'quickPick'" },
1708+
{ "key": "right", "command": "quickInput.acceptInBackground",
1709+
"when": "cursorAtEndOfQuickInputBox && inQuickInput && quickInputType == 'quickPick' || inQuickInput && !inputFocus && quickInputType == 'quickPick'" },
16531710
{ "key": "ctrl+alt+-", "command": "workbench.action.quickInputBack",
16541711
"when": "inQuickOpen" },
16551712
{ "key": "ctrl+tab", "command": "workbench.action.quickOpenNavigateNextInEditorPicker",
@@ -1677,17 +1734,13 @@
16771734
{ "key": "escape", "command": "notifications.hideToasts",
16781735
"when": "notificationFocus && notificationToastsVisible" },
16791736
{ "key": "escape", "command": "workbench.action.chat.stopListening",
1680-
"when": "chatIsEnabled && hasSpeechProvider && voiceChatInProgress" },
1681-
{ "key": "escape", "command": "workbench.action.chat.stopListeningInChatEditor",
1682-
"when": "chatIsEnabled && hasSpeechProvider && voiceChatInEditorInProgress" },
1683-
{ "key": "escape", "command": "workbench.action.chat.stopListeningInChatView",
1684-
"when": "chatIsEnabled && hasSpeechProvider && voiceChatInViewInProgress" },
1685-
{ "key": "escape", "command": "workbench.action.chat.stopListeningInQuickChat",
1686-
"when": "chatIsEnabled && hasSpeechProvider && quickVoiceChatInProgress" },
1687-
{ "key": "escape", "command": "workbench.action.chat.stopListeningInTerminalChat",
1688-
"when": "chatIsEnabled && hasSpeechProvider && terminalVoiceChatInProgress" },
1737+
"when": "voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || voiceChatInProgress && scopedVoiceChatInProgress == 'terminal' || voiceChatInProgress && scopedVoiceChatInProgress == 'view'" },
1738+
{ "key": "escape", "command": "workbench.action.chat.stopReadChatItemAloud",
1739+
"when": "scopedChatSynthesisInProgress" },
16891740
{ "key": "escape", "command": "workbench.action.editorDictation.stop",
16901741
"when": "editorDictation.inProgress" },
1742+
{ "key": "escape", "command": "workbench.action.speech.stopReadAloud",
1743+
"when": "scopedChatSynthesisInProgress && textToSpeechInProgress" },
16911744
{ "key": "f10", "command": "extension.node-debug.startWithStopOnEntry",
16921745
"when": "!inDebugMode && debugConfigurationType == 'node' || !inDebugMode && debugConfigurationType == 'pwa-extensionHost' || !inDebugMode && debugConfigurationType == 'pwa-node'" },
16931746
{ "key": "ctrl+k ctrl+alt+s", "command": "git.stageSelectedRanges",

0 commit comments

Comments
 (0)