更新 keybindings.json

This commit is contained in:
colin 2025-12-14 16:19:29 +08:00
parent c5e9895ab0
commit d3bd462b07
1 changed files with 7 additions and 27 deletions

View File

@ -2,11 +2,11 @@
[
{
"key": "cmd+-",
"command": "editor.fold",
"command": "editor.foldRecursively",
},
{
"key": "cmd+=",
"command": "editor.unfold",
"command": "editor.unfoldRecursively",
},
{
"key": "cmd+shift+-",
@ -21,16 +21,6 @@
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+t",
"command": "workbench.action.closeWindow",
"when": "!multipleEditorGroups && !inDebugMode"
},
// {
// "key": "cmd+w",
// "command": "workbench.action.closeWindow",
// "when": "!editorIsOpen && !terminalFocus && !multipleEditorGroups"
// },
{
"key": "cmd+c",
"command": "editor.action.clipboardCopyAction",
@ -43,8 +33,8 @@
},
{
"key": "cmd+n",
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
"command": "editor.action.previousMatchFindAction",
"when": "findInputFocussed && !terminalFocus && !terminalFindFocused && !terminalEditorFocus"
},
{
"key": "cmd+shift+l",
@ -147,11 +137,6 @@
"command": "workbench.action.terminal.findNext",
"when": "terminalFindFocused || terminalFocus"
},
{
"key": "cmd+shift+n",
"command": "workbench.action.terminal.findPrevious",
"when": "terminalFindFocused || terminalFocus"
},
{
"key": "cmd+t",
"command": "workbench.action.terminal.new",
@ -238,17 +223,17 @@
{
"key": "cmd+t",
"command": "workbench.action.debug.stop",
"when": "inDebugMode && editorFocus"
"when": "inDebugMode && !terminalFocus && editorFocus"
},
{
"key": "cmd+r",
"command": "workbench.action.debug.start",
"when": "!inDebugMode"
"when": "!inDebugMode && !terminalFocus"
},
{
"key": "cmd+shift+s",
"command": "workbench.action.debug.stepOver",
"when": "inDebugMode"
"when": "inDebugMode && !terminalFocus"
},
{
"key": "cmd+r",
@ -500,10 +485,5 @@
{
"key": "cmd+q",
"command": "-workbench.action.quit"
},
{
"key": "shift+cmd+n",
"command": "-chatEditor.action.reject",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress"
}
]