答案 0 :(得分:0)
这是因为when
只会在集成终端处于焦点时激活命令。如果您想从任何地方打开终端,只需将其删除即可。
{
"key": "ctrl+`", // This can be changed to any keys
"command": "terminalTabs.createTerminal"
}
答案 1 :(得分:0)
command needs to skip the shell, so it can go to the terminal itself。打开偏好设置 - > 设置并修改commandsToSkipShell
:
"terminal.integrated.commandsToSkipShell": [
(existing settings)
"terminalTabs.createTerminal"
]