更新 'keybindings.json'

This commit is contained in:
colin 2022-01-22 15:44:04 +08:00
parent 72dfd03fb2
commit 3c4bea18ae
1 changed files with 20 additions and 23 deletions

View File

@ -60,14 +60,6 @@
"command": "editor.action.commentLine", "command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
{
"key": "cmd+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "cmd+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{ {
"key": "cmd+b", "key": "cmd+b",
"command": "workbench.action.toggleSidebarVisibility" "command": "workbench.action.toggleSidebarVisibility"
@ -210,47 +202,47 @@
{ {
"key": "cmd+1", "key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1", "command": "workbench.action.openEditorAtIndex1",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+2", "key": "cmd+2",
"command": "workbench.action.openEditorAtIndex2", "command": "workbench.action.openEditorAtIndex2",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+3", "key": "cmd+3",
"command": "workbench.action.openEditorAtIndex3", "command": "workbench.action.openEditorAtIndex3",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+4", "key": "cmd+4",
"command": "workbench.action.openEditorAtIndex4", "command": "workbench.action.openEditorAtIndex4",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+5", "key": "cmd+5",
"command": "workbench.action.openEditorAtIndex5", "command": "workbench.action.openEditorAtIndex5",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+6", "key": "cmd+6",
"command": "workbench.action.openEditorAtIndex6", "command": "workbench.action.openEditorAtIndex6",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+7", "key": "cmd+7",
"command": "workbench.action.openEditorAtIndex7", "command": "workbench.action.openEditorAtIndex7",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+8", "key": "cmd+8",
"command": "workbench.action.openEditorAtIndex8", "command": "workbench.action.openEditorAtIndex8",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+9", "key": "cmd+9",
"command": "workbench.action.openEditorAtIndex9", "command": "workbench.action.openEditorAtIndex9",
"when": "editorFocus" "when": "editorFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+0", "key": "cmd+0",
@ -354,32 +346,37 @@
{ {
"key": "cmd+1", "key": "cmd+1",
"command": "workbench.action.terminal.focusAtIndex1", "command": "workbench.action.terminal.focusAtIndex1",
"when": "terminalFocus || terminalFindFocused" "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus"
}, },
{ {
"key": "cmd+2", "key": "cmd+2",
"command": "workbench.action.terminal.focusAtIndex2", "command": "workbench.action.terminal.focusAtIndex2",
"when": "terminalFocus || terminalFindFocused" "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus"
}, },
{ {
"key": "cmd+3", "key": "cmd+3",
"command": "workbench.action.terminal.focusAtIndex3", "command": "workbench.action.terminal.focusAtIndex3",
"when": "terminalFocus || terminalFindFocused" "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus"
}, },
{ {
"key": "cmd+4", "key": "cmd+4",
"command": "workbench.action.terminal.focusAtIndex4", "command": "workbench.action.terminal.focusAtIndex4",
"when": "terminalFocus || terminalFindFocused" "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus"
}, },
{ {
"key": "cmd+5", "key": "cmd+5",
"command": "workbench.action.terminal.focusAtIndex5", "command": "workbench.action.terminal.focusAtIndex5",
"when": "terminalFocus || terminalFindFocused" "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus"
}, },
{ {
"key": "cmd+6", "key": "cmd+6",
"command": "workbench.action.terminal.focusAtIndex6", "command": "workbench.action.terminal.focusAtIndex6",
"when": "terminalFocus || terminalFindFocused" "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus"
},
{
"key": "cmd+7",
"command": "workbench.action.terminal.focusAtIndex7",
"when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus"
}, },
{ {
"key": "cmd+shift+e", "key": "cmd+shift+e",