在可视化工作室代码中隐藏集成终端的快捷方式是什么

为了打开集成终端有一个快捷 ctrl + `。有什么捷径可以隐藏终端吗?

29427 次浏览

Using VS Code 1.41.1 on windows, Ctrl/Cmd + J toggles the panel view.

You can look up the default keybinding for your OS by opening the Keyboard Shortcuts view and searching for the workbench.action.togglePanel command. In case it is not asigned yet to a default shortcut or you prefer another one, you can adjust the keybinding in this view as well.

For MacOS users the keyboard shortcut is:

Ctrl + Shift + ´

(VS Code v.1.47.3)

You can use same ctrl + ` to toggle appearance of terminal. If you want to keep both open and jump around, use below

ctrl + ` to jump in terminal

ctrl + 1 to jump back in editor

For OS X, the command is to show/hide the terminal is COMMAND + J

On macOS Command + J Hide Panel

Environment
Visual Studio Code Version: 1.63.2
macOS Monterey Version 12.1 x86_64

In keybindings.json, copy following JSON lines:

  {
"key": "ctrl+'",
"command": "workbench.action.terminal.toggleTerminal",
"when": "!terminalFocus"
},
{
"key": "ctrl+'",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminalFocus"
},

you can change ctrl+' by what shortcut you like.