关闭 Visual Studio Code 中的构建面板

Sco*_*ttF 4 keyboard-shortcuts visual-studio-code

每当我在 Visual Studio 代码中运行构建时,都会弹出一个面板,其中包含我的构建输出。

有没有办法可以使用键盘快捷键关闭此面板?

在 Sublime Text 中,我只需按 esc 即可关闭。可以在 VSCode 中模仿这种行为吗?

Von*_*onC 5

您可以定义隐藏当前终端的快捷方式

例如,我的是:

{
  "key": "ctrl+l",
  "command": "workbench.action.terminal.toggleTerminal"
}
Run Code Online (Sandbox Code Playgroud)

或者您可以设置一个

{
  "key": "escape",
  "command": "workbench.action.closePanel"
}
Run Code Online (Sandbox Code Playgroud)

最后一个将模仿您的 SublimeText 体验。