Ctrl + Shift + P
輸入 Preferences: Open Keyboard shortcurs(JSON)
,輸入
[
{ "key": "ctrl+1", "command": "workbench.action.terminal.focusAtIndex1", "when": "terminalFocus" },
{ "key": "ctrl+2", "command": "workbench.action.terminal.focusAtIndex2", "when": "terminalFocus" },
{ "key": "ctrl+3", "command": "workbench.action.terminal.focusAtIndex3", "when": "terminalFocus" },
{ "key": "ctrl+4", "command": "workbench.action.terminal.focusAtIndex4", "when": "terminalFocus" },
{ "key": "ctrl+5", "command": "workbench.action.terminal.focusAtIndex5", "when": "terminalFocus" },
{ "key": "ctrl+6", "command": "workbench.action.terminal.focusAtIndex6", "when": "terminalFocus" },
{ "key": "ctrl+7", "command": "workbench.action.terminal.focusAtIndex7", "when": "terminalFocus" },
{ "key": "ctrl+8", "command": "workbench.action.terminal.focusAtIndex8", "when": "terminalFocus" },
{ "key": "ctrl+9", "command": "workbench.action.terminal.focusAtIndex9", "when": "terminalFocus" },
{ "key": "ctrl+t", "command": "workbench.action.terminal.new" }
]
Ctrl + 1~9
用於切換終端, Ctrl + t
用於創建新終端。