Skip to content

Commit d120248

Browse files
authored
Merge pull request #217 from codebling/update-default-keybindings-2026-05-13-14-34
Update for VSCode 1.120.0
2 parents 5a6d4ef + 0e8fee2 commit d120248

6 files changed

Lines changed: 76 additions & 80 deletions

linux.keybindings.json

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

33
[
44
{ "key": "escape escape", "command": "workbench.action.exitZenMode",
@@ -1387,11 +1387,11 @@
13871387
{ "key": "ctrl+o", "command": "workbench.action.files.openFile",
13881388
"when": "true" },
13891389
{ "key": "ctrl+o", "command": "workbench.action.files.openFileFolder",
1390-
"when": "isMacNative && openFolderWorkspaceSupport && !isSessionsWindow" },
1390+
"when": "isMacNative && openFolderWorkspaceSupport" },
13911391
{ "key": "ctrl+k ctrl+o", "command": "workbench.action.files.openFolder",
1392-
"when": "openFolderWorkspaceSupport && !isSessionsWindow" },
1392+
"when": "openFolderWorkspaceSupport" },
13931393
{ "key": "ctrl+o", "command": "workbench.action.files.openFolderViaWorkspace",
1394-
"when": "!isSessionsWindow && !openFolderWorkspaceSupport && workbenchState == 'workspace'" },
1394+
"when": "!openFolderWorkspaceSupport && workbenchState == 'workspace'" },
13951395
{ "key": "ctrl+o", "command": "workbench.action.files.openLocalFile",
13961396
"when": "remoteFileDialogVisible" },
13971397
{ "key": "ctrl+k ctrl+o", "command": "workbench.action.files.openLocalFolder",
@@ -1455,10 +1455,13 @@
14551455
{ "key": "ctrl+shift+-", "command": "workbench.action.navigateForward",
14561456
"when": "canNavigateForward" },
14571457
{ "key": "ctrl+k ctrl+q", "command": "workbench.action.navigateToLastEditLocation" },
1458-
{ "key": "ctrl+shift+n", "command": "workbench.action.newWindow",
1459-
"when": "!isSessionsWindow" },
1458+
{ "key": "ctrl+shift+n", "command": "workbench.action.newWindow" },
14601459
{ "key": "ctrl+pagedown", "command": "workbench.action.nextEditor" },
14611460
{ "key": "ctrl+k ctrl+pagedown", "command": "workbench.action.nextEditorInGroup" },
1461+
{ "key": "ctrl+shift+a", "command": "workbench.action.openAgentsWindow",
1462+
"when": "config.chat.agent.enabled && !accessibilityModeEnabled && !chatSetupDisabledInWorkspace && !chatSetupHidden && !isSessionsWindow" },
1463+
{ "key": "ctrl+shift+alt+a", "command": "workbench.action.openAgentsWindow",
1464+
"when": "accessibilityModeEnabled && config.chat.agent.enabled && !chatSetupDisabledInWorkspace && !chatSetupHidden && !isSessionsWindow" },
14621465
{ "key": "ctrl+n", "command": "workbench.action.openChat",
14631466
"when": "chatIsEnabled && inChat && inChatEditor" },
14641467
{ "key": "alt+1", "command": "workbench.action.openEditorAtIndex1" },
@@ -1471,8 +1474,7 @@
14711474
{ "key": "alt+8", "command": "workbench.action.openEditorAtIndex8" },
14721475
{ "key": "alt+9", "command": "workbench.action.openEditorAtIndex9" },
14731476
{ "key": "ctrl+k ctrl+s", "command": "workbench.action.openGlobalKeybindings" },
1474-
{ "key": "ctrl+r", "command": "workbench.action.openRecent",
1475-
"when": "!isSessionsWindow" },
1477+
{ "key": "ctrl+r", "command": "workbench.action.openRecent" },
14761478
{ "key": "ctrl+,", "command": "workbench.action.openSettings" },
14771479
{ "key": "ctrl+k ctrl+h", "command": "workbench.action.output.toggleOutput",
14781480
"when": "workbench.panel.output.active" },
@@ -1680,7 +1682,7 @@
16801682
{ "key": "ctrl+j", "command": "workbench.action.togglePanel" },
16811683
{ "key": "ctrl+b", "command": "workbench.action.toggleSidebarVisibility" },
16821684
{ "key": "ctrl+k z", "command": "workbench.action.toggleZenMode",
1683-
"when": "!isAuxiliaryWindowFocusedContext && !isSessionsWindow" },
1685+
"when": "!isAuxiliaryWindowFocusedContext" },
16841686
{ "key": "ctrl+k shift+enter", "command": "workbench.action.unpinEditor",
16851687
"when": "activeEditorIsPinned" },
16861688
{ "key": "ctrl+numpad_add", "command": "workbench.action.zoomIn" },
@@ -1957,8 +1959,6 @@
19571959
"when": "cursorAtEndOfQuickInputBox && inQuickInput && quickInputType == 'quickPick' || inQuickInput && !inputFocus && quickInputType == 'quickPick'" },
19581960
{ "key": "ctrl+shift+c", "command": "workbench.action.browser.addElementToChat",
19591961
"when": "browserHasUrl && chatIsEnabled && !browserHasError && activeEditor == 'workbench.editor.browser'" },
1960-
{ "key": "ctrl+enter", "command": "workbench.action.browser.addFocusedElementToChat",
1961-
"when": "browserElementSelectionActive && browserFocused" },
19621962
{ "key": "browserback", "command": "workbench.action.browser.goBack",
19631963
"when": "browserCanGoBack && activeEditor == 'workbench.editor.browser'" },
19641964
{ "key": "alt+left", "command": "workbench.action.browser.goBack",
@@ -2030,15 +2030,15 @@
20302030
{ "key": "ctrl+k ctrl+alt+s", "command": "git.stageSelectedRanges",
20312031
"when": "editorTextFocus && !operationInProgress && resourceScheme == 'file'" },
20322032
{ "key": "ctrl+k v", "command": "markdown.showPreviewToSide",
2033-
"when": "!notebookEditorFocused && editorLangId =~ /^(markdown|prompt|instructions|chatagent|skill)$/" },
2033+
"when": "editorFocus && !notebookEditorFocused && editorLangId =~ /^(markdown|prompt|instructions|chatagent|skill)$/" },
20342034
{ "key": "shift+alt+f12", "command": "references-view.findReferences",
20352035
"when": "editorHasReferenceProvider" },
20362036
{ "key": "f11", "command": "extension.node-debug.startWithStopOnEntry",
20372037
"when": "!inDebugMode && activeViewlet == 'workbench.view.debug' && debugConfigurationType == 'node' || !inDebugMode && activeViewlet == 'workbench.view.debug' && debugConfigurationType == 'pwa-extensionHost' || !inDebugMode && activeViewlet == 'workbench.view.debug' && debugConfigurationType == 'pwa-node'" },
20382038
{ "key": "ctrl+k ctrl+n", "command": "git.unstageSelectedRanges",
20392039
"when": "editorTextFocus && isInDiffEditor && isInDiffRightEditor && !operationInProgress && resourceScheme == 'git'" },
20402040
{ "key": "ctrl+shift+v", "command": "markdown.togglePreview",
2041-
"when": "!notebookEditorFocused && resourceLangId =~ /^(markdown|prompt|instructions|chatagent|skill)$/" },
2041+
"when": "!terminalFocus && activeCustomEditorId == 'vscode.markdown.preview.editor' || editorFocus && !notebookEditorFocused && !terminalFocus && resourceLangId =~ /^(markdown|prompt|instructions|chatagent|skill)$/" },
20422042
{ "key": "f4", "command": "references-view.next",
20432043
"when": "reference-list.hasResult && references-view.canNavigate" },
20442044
{ "key": "ctrl+k ctrl+r", "command": "git.revertSelectedRanges",

linux.negative.keybindings.json

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

33
[
44
{ "key": "escape escape", "command": "-workbench.action.exitZenMode",
@@ -1387,11 +1387,11 @@
13871387
{ "key": "ctrl+o", "command": "-workbench.action.files.openFile",
13881388
"when": "true" },
13891389
{ "key": "ctrl+o", "command": "-workbench.action.files.openFileFolder",
1390-
"when": "isMacNative && openFolderWorkspaceSupport && !isSessionsWindow" },
1390+
"when": "isMacNative && openFolderWorkspaceSupport" },
13911391
{ "key": "ctrl+k ctrl+o", "command": "-workbench.action.files.openFolder",
1392-
"when": "openFolderWorkspaceSupport && !isSessionsWindow" },
1392+
"when": "openFolderWorkspaceSupport" },
13931393
{ "key": "ctrl+o", "command": "-workbench.action.files.openFolderViaWorkspace",
1394-
"when": "!isSessionsWindow && !openFolderWorkspaceSupport && workbenchState == 'workspace'" },
1394+
"when": "!openFolderWorkspaceSupport && workbenchState == 'workspace'" },
13951395
{ "key": "ctrl+o", "command": "-workbench.action.files.openLocalFile",
13961396
"when": "remoteFileDialogVisible" },
13971397
{ "key": "ctrl+k ctrl+o", "command": "-workbench.action.files.openLocalFolder",
@@ -1455,10 +1455,13 @@
14551455
{ "key": "ctrl+shift+-", "command": "-workbench.action.navigateForward",
14561456
"when": "canNavigateForward" },
14571457
{ "key": "ctrl+k ctrl+q", "command": "-workbench.action.navigateToLastEditLocation" },
1458-
{ "key": "ctrl+shift+n", "command": "-workbench.action.newWindow",
1459-
"when": "!isSessionsWindow" },
1458+
{ "key": "ctrl+shift+n", "command": "-workbench.action.newWindow" },
14601459
{ "key": "ctrl+pagedown", "command": "-workbench.action.nextEditor" },
14611460
{ "key": "ctrl+k ctrl+pagedown", "command": "-workbench.action.nextEditorInGroup" },
1461+
{ "key": "ctrl+shift+a", "command": "-workbench.action.openAgentsWindow",
1462+
"when": "config.chat.agent.enabled && !accessibilityModeEnabled && !chatSetupDisabledInWorkspace && !chatSetupHidden && !isSessionsWindow" },
1463+
{ "key": "ctrl+shift+alt+a", "command": "-workbench.action.openAgentsWindow",
1464+
"when": "accessibilityModeEnabled && config.chat.agent.enabled && !chatSetupDisabledInWorkspace && !chatSetupHidden && !isSessionsWindow" },
14621465
{ "key": "ctrl+n", "command": "-workbench.action.openChat",
14631466
"when": "chatIsEnabled && inChat && inChatEditor" },
14641467
{ "key": "alt+1", "command": "-workbench.action.openEditorAtIndex1" },
@@ -1471,8 +1474,7 @@
14711474
{ "key": "alt+8", "command": "-workbench.action.openEditorAtIndex8" },
14721475
{ "key": "alt+9", "command": "-workbench.action.openEditorAtIndex9" },
14731476
{ "key": "ctrl+k ctrl+s", "command": "-workbench.action.openGlobalKeybindings" },
1474-
{ "key": "ctrl+r", "command": "-workbench.action.openRecent",
1475-
"when": "!isSessionsWindow" },
1477+
{ "key": "ctrl+r", "command": "-workbench.action.openRecent" },
14761478
{ "key": "ctrl+,", "command": "-workbench.action.openSettings" },
14771479
{ "key": "ctrl+k ctrl+h", "command": "-workbench.action.output.toggleOutput",
14781480
"when": "workbench.panel.output.active" },
@@ -1680,7 +1682,7 @@
16801682
{ "key": "ctrl+j", "command": "-workbench.action.togglePanel" },
16811683
{ "key": "ctrl+b", "command": "-workbench.action.toggleSidebarVisibility" },
16821684
{ "key": "ctrl+k z", "command": "-workbench.action.toggleZenMode",
1683-
"when": "!isAuxiliaryWindowFocusedContext && !isSessionsWindow" },
1685+
"when": "!isAuxiliaryWindowFocusedContext" },
16841686
{ "key": "ctrl+k shift+enter", "command": "-workbench.action.unpinEditor",
16851687
"when": "activeEditorIsPinned" },
16861688
{ "key": "ctrl+numpad_add", "command": "-workbench.action.zoomIn" },
@@ -1957,8 +1959,6 @@
19571959
"when": "cursorAtEndOfQuickInputBox && inQuickInput && quickInputType == 'quickPick' || inQuickInput && !inputFocus && quickInputType == 'quickPick'" },
19581960
{ "key": "ctrl+shift+c", "command": "-workbench.action.browser.addElementToChat",
19591961
"when": "browserHasUrl && chatIsEnabled && !browserHasError && activeEditor == 'workbench.editor.browser'" },
1960-
{ "key": "ctrl+enter", "command": "-workbench.action.browser.addFocusedElementToChat",
1961-
"when": "browserElementSelectionActive && browserFocused" },
19621962
{ "key": "browserback", "command": "-workbench.action.browser.goBack",
19631963
"when": "browserCanGoBack && activeEditor == 'workbench.editor.browser'" },
19641964
{ "key": "alt+left", "command": "-workbench.action.browser.goBack",
@@ -2030,15 +2030,15 @@
20302030
{ "key": "ctrl+k ctrl+alt+s", "command": "-git.stageSelectedRanges",
20312031
"when": "editorTextFocus && !operationInProgress && resourceScheme == 'file'" },
20322032
{ "key": "ctrl+k v", "command": "-markdown.showPreviewToSide",
2033-
"when": "!notebookEditorFocused && editorLangId =~ /^(markdown|prompt|instructions|chatagent|skill)$/" },
2033+
"when": "editorFocus && !notebookEditorFocused && editorLangId =~ /^(markdown|prompt|instructions|chatagent|skill)$/" },
20342034
{ "key": "shift+alt+f12", "command": "-references-view.findReferences",
20352035
"when": "editorHasReferenceProvider" },
20362036
{ "key": "f11", "command": "-extension.node-debug.startWithStopOnEntry",
20372037
"when": "!inDebugMode && activeViewlet == 'workbench.view.debug' && debugConfigurationType == 'node' || !inDebugMode && activeViewlet == 'workbench.view.debug' && debugConfigurationType == 'pwa-extensionHost' || !inDebugMode && activeViewlet == 'workbench.view.debug' && debugConfigurationType == 'pwa-node'" },
20382038
{ "key": "ctrl+k ctrl+n", "command": "-git.unstageSelectedRanges",
20392039
"when": "editorTextFocus && isInDiffEditor && isInDiffRightEditor && !operationInProgress && resourceScheme == 'git'" },
20402040
{ "key": "ctrl+shift+v", "command": "-markdown.togglePreview",
2041-
"when": "!notebookEditorFocused && resourceLangId =~ /^(markdown|prompt|instructions|chatagent|skill)$/" },
2041+
"when": "!terminalFocus && activeCustomEditorId == 'vscode.markdown.preview.editor' || editorFocus && !notebookEditorFocused && !terminalFocus && resourceLangId =~ /^(markdown|prompt|instructions|chatagent|skill)$/" },
20422042
{ "key": "f4", "command": "-references-view.next",
20432043
"when": "reference-list.hasResult && references-view.canNavigate" },
20442044
{ "key": "ctrl+k ctrl+r", "command": "-git.revertSelectedRanges",

0 commit comments

Comments
 (0)