我已经设法为VSCode的集成终端添加了一些键绑定,但是想要添加更多。如何添加自己的键绑定?
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "cmd+right", "command": "workbench.action.terminal.focusNext",
"when": "terminalFocus" },
{ "key": "cmd+left", "command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus" },
{ "key": "cmd+delete", "command": "workbench.action.terminal.deleteAllRight",
"when": "terminalFocus" }
]
前两个工作,但最后一个工作没有,我猜这是因为集成终端没有这个选项。有没有办法添加它?我想在这里拥有所有常规的终端键绑定。
答案 0 :(得分:0)
{
"key": "cmd+x",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
}
你可能已经知道这个了,但为了以防万一。它只会杀死当前的终端,但您可以按几次以获得相同的功能。