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
用于创建新终端。