|
1 |
| -// Default Keybindings of Visual Studio Code 1.97.2 for Linux |
| 1 | +// Default Keybindings of Visual Studio Code 1.98.0 for Linux |
2 | 2 |
|
3 | 3 | [
|
4 | 4 | { "key": "escape escape", "command": "workbench.action.exitZenMode",
|
|
526 | 526 | { "key": "ctrl+k ctrl+alt+c", "command": "workbench.action.addComment",
|
527 | 527 | "when": "activeCursorHasCommentingRange" },
|
528 | 528 | { "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'" }, |
530 | 532 | { "key": "ctrl+alt+enter", "command": "workbench.action.chat.runInTerminal",
|
531 | 533 | "when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat" },
|
532 | 534 | { "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'" }, |
534 | 536 | { "key": "ctrl+enter", "command": "workbench.action.chat.submitSecondaryAgent",
|
535 | 537 | "when": "chatInputHasText && chatRequestIsPaused && inChatInput && !chatInputHasAgent || chatInputHasText && inChatInput && !chatInputHasAgent && !chatSessionRequestInProgress || chatInstructionsAttached && chatRequestIsPaused && inChatInput && !chatInputHasAgent || chatInstructionsAttached && inChatInput && !chatInputHasAgent && !chatSessionRequestInProgress" },
|
536 | 538 | { "key": "shift+alt+enter", "command": "workbench.action.chat.submitWithoutDispatching",
|
537 | 539 | "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'" },
|
538 | 540 | { "key": "ctrl+.", "command": "workbench.action.chat.toggleAgentMode",
|
539 | 541 | "when": "chatHasToolsAgent && inChatInput && !chatSessionRequestInProgress && chatLocation == 'editing-session'" },
|
540 | 542 | { "key": "alt+f5", "command": "workbench.action.editor.nextChange",
|
541 |
| - "when": "editorTextFocus && !textCompareEditorActive" }, |
| 543 | + "when": "editorTextFocus && !textCompareEditorActive && quickDiffDecorationCount != '0'" }, |
542 | 544 | { "key": "shift+alt+f5", "command": "workbench.action.editor.previousChange",
|
543 |
| - "when": "editorTextFocus && !textCompareEditorActive" }, |
| 545 | + "when": "editorTextFocus && !textCompareEditorActive && quickDiffDecorationCount != '0'" }, |
544 | 546 | { "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'" }, |
546 | 548 | { "key": "shift+escape", "command": "workbench.action.hideComment",
|
547 | 549 | "when": "commentEditorFocused || commentFocused" },
|
548 | 550 | { "key": "escape", "command": "workbench.action.hideComment",
|
|
673 | 675 | "when": "renameInputVisible" },
|
674 | 676 | { "key": "up", "command": "focusPreviousRenameSuggestion",
|
675 | 677 | "when": "renameInputVisible" },
|
| 678 | + { "key": "ctrl+k ctrl+i", "command": "workbench.action.showHover", |
| 679 | + "when": "!editorTextFocus" }, |
676 | 680 | { "key": "ctrl+shift+l", "command": "addCursorsAtSearchResults",
|
677 | 681 | "when": "fileMatchOrMatchFocus && searchViewletVisible" },
|
678 | 682 | { "key": "ctrl+shift+;", "command": "breadcrumbs.focus",
|
|
712 | 716 | { "key": "ctrl+backspace", "command": "chatEditing.discardAllFiles",
|
713 | 717 | "when": "hasUndecidedChatEditingResource && inChatInput && !chatInputHasText && !chatSessionRequestInProgress && chatLocation == 'editing-session'" },
|
714 | 718 | { "key": "ctrl+enter", "command": "chatEditor.action.accept",
|
715 |
| - "when": "chat.hasEditorModifications && editorFocus && hasUndecidedChatEditingResource" }, |
| 719 | + "when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" }, |
716 | 720 | { "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" }, |
720 | 722 | { "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" }, |
722 | 724 | { "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" }, |
724 | 726 | { "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" }, |
726 | 732 | { "key": "ctrl+shift+backspace", "command": "chatEditor.action.undoHunk",
|
727 |
| - "when": "chat.hasEditorModifications && editorFocus && hasUndecidedChatEditingResource && !chatSessionRequestInProgress" }, |
| 733 | + "when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress" }, |
728 | 734 | { "key": "escape", "command": "closeReplaceInFilesWidget",
|
729 | 735 | "when": "replaceInputBoxFocus && searchViewletVisible" },
|
730 | 736 | { "key": "escape", "command": "commentsClearFilterText",
|
|
749 | 755 | "when": "accessibilityModeEnabled && isWindows && textInputFocus && focusedView == 'workbench.panel.output'" },
|
750 | 756 | { "key": "ctrl+shift+right", "command": "cursorWordAccessibilityRightSelect",
|
751 | 757 | "when": "accessibilityModeEnabled && isWindows && textInputFocus && focusedView == 'workbench.panel.output'" },
|
| 758 | + { "key": "ctrl+alt+c", "command": "debug.copyWatchExpression", |
| 759 | + "when": "watchExpressionsExist && !expressionSelected && focusedView == 'workbench.debug.watchExpressionsView'" }, |
752 | 760 | { "key": "alt+enter", "command": "debug.openBreakpointToSide",
|
753 | 761 | "when": "breakpointsFocused" },
|
754 | 762 | { "key": "ctrl+enter", "command": "debug.openBreakpointToSide",
|
|
835 | 843 | { "key": "alt+=", "command": "increaseSearchEditorContextLines",
|
836 | 844 | "when": "inSearchEditor" },
|
837 | 845 | { "key": "ctrl+i", "command": "inlineChat.holdForSpeech",
|
838 |
| - "when": "hasSpeechProvider && inlineChatHasProvider && inlineChatVisible && textInputFocus" }, |
| 846 | + "when": "hasSpeechProvider && inlineChatVisible && textInputFocus" }, |
839 | 847 | { "key": "f7", "command": "inlineChat.moveToNextHunk",
|
840 | 848 | "when": "inlineChatHasProvider && inlineChatVisible" },
|
841 | 849 | { "key": "shift+f7", "command": "inlineChat.moveToPreviousHunk",
|
842 | 850 | "when": "inlineChatHasProvider && inlineChatVisible" },
|
843 | 851 | { "key": "ctrl+r", "command": "inlineChat.regenerate",
|
844 | 852 | "when": "inlineChatHasProvider && inlineChatVisible" },
|
845 | 853 | { "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" }, |
847 | 855 | { "key": "ctrl+k i", "command": "inlineChat.startWithCurrentLine",
|
848 | 856 | "when": "inlineChatHasProvider && !editorReadonly && !inlineChatVisible" },
|
849 | 857 | { "key": "ctrl+z", "command": "inlineChat.unstash",
|
850 | 858 | "when": "inlineChatHasStashedSession && !editorReadonly" },
|
851 | 859 | { "key": "ctrl+down", "command": "inlineChat.viewInChat",
|
852 | 860 | "when": "inChatInput && inlineChatHasProvider && inlineChatVisible" },
|
853 | 861 | { "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" }, |
859 | 863 | { "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'" }, |
861 | 867 | { "key": "ctrl+up", "command": "interactive.history.focus",
|
862 | 868 | "when": "isCompositeNotebook && isLinux && !notebookEditorFocused || isCompositeNotebook && isWindows && !notebookEditorFocused" },
|
863 | 869 | { "key": "down", "command": "interactive.history.next",
|
|
952 | 958 | "when": "config.notebook.multiCursor.enabled && isNotebookMultiSelect && activeEditor == 'workbench.editor.notebook'" },
|
953 | 959 | { "key": "ctrl+d", "command": "notebook.addFindMatchToSelection",
|
954 | 960 | "when": "config.notebook.multiCursor.enabled && notebookCellEditorFocused && activeEditor == 'workbench.editor.notebook'" },
|
| 961 | + { "key": "ctrl+k m", "command": "notebook.cell.changeLanguage", |
| 962 | + "when": "notebookCellEditable && notebookEditable && notebookEditorFocused" }, |
955 | 963 | { "key": "y", "command": "notebook.cell.changeToCode",
|
956 | 964 | "when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'markup'" },
|
957 | 965 | { "key": "m", "command": "notebook.cell.changeToMarkdown",
|
|
1129 | 1137 | "when": "inQuickInput && quickInputType == 'quickPick'" },
|
1130 | 1138 | { "key": "alt+up", "command": "quickInput.previousSeparatorWithQuickAccessFallback",
|
1131 | 1139 | "when": "inQuickInput && quickInputType == 'quickPick'" },
|
| 1140 | + { "key": "ctrl+space", "command": "quickInput.toggleHover", |
| 1141 | + "when": "inQuickInput && quickInputType == 'quickPick'" }, |
1132 | 1142 | { "key": "space", "command": "refactorPreview.toggleCheckedState",
|
1133 | 1143 | "when": "listFocus && refactorPreview.enabled && !inputFocus && !treestickyScrollFocused" },
|
1134 | 1144 | { "key": "ctrl+alt+r", "command": "revealFileInOS",
|
|
1138 | 1148 | { "key": "ctrl+enter", "command": "scm.acceptInput",
|
1139 | 1149 | "when": "scmRepository" },
|
1140 | 1150 | { "key": "escape", "command": "scm.clearInput",
|
1141 |
| - "when": "scmRepository && !suggestWidgetVisible" }, |
| 1151 | + "when": "scmRepository && !editorHasSelection && !suggestWidgetVisible" }, |
1142 | 1152 | { "key": "alt+down", "command": "scm.forceViewNextCommit",
|
1143 | 1153 | "when": "scmRepository" },
|
1144 | 1154 | { "key": "alt+up", "command": "scm.forceViewPreviousCommit",
|
|
1449 | 1459 | { "key": "ctrl+k ctrl+\\", "command": "workbench.action.splitEditorUp" },
|
1450 | 1460 | { "key": "ctrl+shift+b", "command": "workbench.action.tasks.build",
|
1451 | 1461 | "when": "taskCommandsRegistered" },
|
| 1462 | + { "key": "ctrl+shift+r", "command": "workbench.action.tasks.rerunForActiveTerminal", |
| 1463 | + "when": "taskTerminalActive && terminalFocus" }, |
1452 | 1464 | { "key": "escape", "command": "workbench.action.terminal.chat.close",
|
1453 | 1465 | "when": "terminalChatFocus && terminalChatVisible || terminalChatVisible && terminalFocus" },
|
1454 | 1466 | { "key": "ctrl+alt+enter", "command": "workbench.action.terminal.chat.insertCommand",
|
|
1637 | 1649 | "when": "bannerFocused" },
|
1638 | 1650 | { "key": "left", "command": "workbench.banner.focusPreviousAction",
|
1639 | 1651 | "when": "bannerFocused" },
|
| 1652 | + { "key": "ctrl+alt+/", "command": "workbench.command.prompts.use", |
| 1653 | + "when": "config.chat.promptFiles" }, |
1640 | 1654 | { "key": "ctrl+shift+y", "command": "workbench.debug.action.toggleRepl",
|
1641 | 1655 | "when": "workbench.panel.repl.view.active" },
|
1642 | 1656 | { "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'" }, |
1644 | 1658 | { "key": "ctrl+k c", "command": "workbench.files.action.compareWithClipboard" },
|
1645 | 1659 | { "key": "ctrl+k d", "command": "workbench.files.action.compareWithSaved" },
|
1646 | 1660 | { "key": "ctrl+k e", "command": "workbench.files.action.focusOpenEditorsView",
|
|
1707 | 1721 | "when": "focusedView != ''" },
|
1708 | 1722 | { "key": "ctrl+k up", "command": "views.moveViewUp",
|
1709 | 1723 | "when": "focusedView != ''" },
|
| 1724 | + { "key": "ctrl+enter", "command": "workbench.action.chat.acceptTool", |
| 1725 | + "when": "chatHasToolConfirmation && inChat" }, |
1710 | 1726 | { "key": "ctrl+pagedown", "command": "workbench.action.debug.nextConsole",
|
1711 | 1727 | "when": "inDebugRepl" },
|
1712 | 1728 | { "key": "ctrl+pageup", "command": "workbench.action.debug.prevConsole",
|
|
0 commit comments