vscode-terminal-shortcut(vscode终端快捷键自定义设置)

通过 vscode -> 键盘快捷方式 设置

点击keybindings.json

在弹出的 Default Keybindings 中搜索 terminal

找到被注释掉的 terminal 快捷命令去自定义

然后根据个人习惯进行在keybindings.json中自定义快捷键

以下是笔者的设置


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[
{
"key": "shift+alt+t",
"command": "workbench.action.terminal.focus"
},
{
"key": "alt+1",
"command": "workbench.action.terminal.focusAtIndex1",
"when": "terminalFocus"
},
{
"key": "alt+2",
"command": "workbench.action.terminal.focusAtIndex2",
"when": "terminalFocus"
},
{
"key": "alt+3",
"command": "workbench.action.terminal.focusAtIndex3",
"when": "terminalFocus"
},
{
"key": "alt+4",
"command": "workbench.action.terminal.focusAtIndex4",
"when": "terminalFocus"
},
{
"key": "alt+n",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "alt+p",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},
]


好的文字有着水晶般的光辉,仿佛来自星星。
——王小波