简体   繁体   中英

What's the shortcut to hide the integrated terminal in visual studio code

In order to open the integrated terminal there is a shortcut ctrl + ` . Is there any shortcut to hide the terminal?

Using VS Code 1.41.1 on windows, Ctrl + 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.

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

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.

对于 OS X,显示/隐藏终端的COMMAND + JCOMMAND + J

On macOS Command + J Hide Panel

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

For MacOS users the keyboard shortcut is:

Ctrl + Shift + ´

(VS Code v.1.47.3)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM