Vscode: Auto hide panel

Created on 25 Aug 2016  Â·  42Comments  Â·  Source: microsoft/vscode

Similar to behavior in Visual Studio, is there a way we could get the terminal to show/hide automatically? Leaving some sort of tab at the bottom of the screen?

It opens when:

  1. User mouses over the tab
  2. Something is written to the terminal

It hides when:

  1. User clicks outside of the open terminal window.
  2. The terminal has not been written to within a set period of ~10 seconds.

Ex: I'm working on an Angular 2 application using the angular-cli build tool. When I'm writing code or clicking through the UI I don't particularly care about what's displaying in the terminal. But as soon as I save my changes and the build process starts, I DO want to quickly see what the current state of the build is. So after saving a file, when the CLI tool starts writing to the terminal, it would pop-up from the bottom, and as long as my mouse isn't hovering over it, it will hide again after several seconds of inactivity.

feature-request layout

Most helpful comment

To all the +1 people, please stop. You're wasting time for everyone who's actually interested in this being added to VSCode or looking for work-arounds to help in the mean time. Unfortunately, I feel we need to lock this thread to prevent any more +1, even though there may be some useful solutions posted here in the future.

And yes this message just added to the noise, but hopefully it will stop this run of +1 comments. If you want to support this request, please add a thumb's up to the first message and move on. Thank you!

All 42 comments

Hi @Tyriar - I saw that you closed several duplicate issues related to this. Is there an ETA for adding this functionality?

Thanks.

No ETA, https://github.com/Microsoft/vscode/issues/2806 will probably get looked at before this one.

+1

It would be also nice to have an option to show terminal _only_ when underlying shell exited with code other than 0 (zero) OR something was printed to stderr. E.g. i'm starting CMake build in shell, but i don't want to see terminal until it requires my attention: for example, a compilation error occurred, warning was printed (normally to stderr) or shell failed to execute build in some other way.

+1

I would also want this feature. +1

+1

+1

+1 I was just working with Angular and...well.. this happened.

+1

+1

+1 - Is this still pending since 2016 or am I missing a fix?

+1

Considering writing a plugin for this. My biggest problem with the VSC interface in general is the lack of feedback on actions. Make a Git pull, start a Vagrant box, etc, and if you don't have the Terminal already open and ready (and manually switch to the new Terminal tab every tool run generates), you get absolutely zero feedback. It's quite frustrating to have to go looking for the outcome of actions taken.

@GregJPreece any luck?

+1 Please add this feature :)

+1

FYI while waiting for this add-on, the shortcut ctrl + ` should open/close the terminal

+1

close does not suit when you've opened VSC from a parent directory as every time you should:
$ cd target
+1

NetBeans has this pretty much locked down.

When the panel is minimized, you click it, view the contents and after clicking anywhere out of it, it auto closes.
If you want it open you click on sticky (keep open) button, until you click x (minimize it).

+1

+1

+1

+1

To all the +1 people, please stop. You're wasting time for everyone who's actually interested in this being added to VSCode or looking for work-arounds to help in the mean time. Unfortunately, I feel we need to lock this thread to prevent any more +1, even though there may be some useful solutions posted here in the future.

And yes this message just added to the noise, but hopefully it will stop this run of +1 comments. If you want to support this request, please add a thumb's up to the first message and move on. Thank you!

want. dont even need that if you have 0 errors in your code and you're using a hardware monitor. with this 'logical' setup that panel is simply in the way and taking up real estate of the screen. having to ctrl+`` to remove what isnt even needed is obnoxious. i could be looking at code rather than this stupid panel :P everytime im uploading firmware ctrl+alt+u it pops back up.. i understand why that is helpful but there is also a need to not see this.. e.g. hardware monitor, people with hardware monitors.

I am waitting for the feature.

Doesn't the ⌃ + (or equivalent on Windows, likely ctrl +) shortcut solve this issue?

As fleshed out here https://code.visualstudio.com/docs/editor/integrated-terminal

@GroomedGorilla
AUTO hide the panel. No shortcut is needed.

I think IntelliJ's "unpinned dock" behavior should be looked into. Their implementation is annoying because it doesn't seem to remember your preference and you seem to be disabling it all the time... but it's more or less what vscode needs. Just make the setting stick.

https://marketplace.visualstudio.com/items?itemName=venryx.vscode-vtools does a pretty good job working around the lack of this in the core product IMO. Has the occasional bug, but works well enough on a day-to-day basis.

https://marketplace.visualstudio.com/items?itemName=venryx.vscode-vtools does a pretty good job working around the lack of this in the core product IMO. Has the occasional bug, but works well enough on a day-to-day basis.

Works well. However, once the bottom bar/terminal is hidden, is there a shortcut to open that same terminal again without having to do to Terminal -> New Terminal?
I have a terminal open, click outside of it, it is hidden, now once I want to go back into that same terminal, what do I do without having to open a new terminal session?
Thank you.

https://marketplace.visualstudio.com/items?itemName=venryx.vscode-vtools does a pretty good job working around the lack of this in the core product IMO. Has the occasional bug, but works well enough on a day-to-day basis.

Works well. However, once the bottom bar/terminal is hidden, is there a shortcut to open that same terminal again without having to do to Terminal -> New Terminal?
I have a terminal open, click outside of it, it is hidden, now once I want to go back into that same terminal, what do I do without having to open a new terminal session?
Thank you.

ctrl + shift + ^ to open the same terminal again.

ctrl + shift + ^ to open the same terminal again.

You can just do ctrl+`

ctrl + shift + ^ to open the same terminal again.

You can just do ctrl+`

Afaik not on Linux, there the combo is ctrl + shift + ^ per default VS Code settings. But yes, could surly adjust those with keybindings.

Afaik not on Linux, there the combo is ctrl + shift + ^ per default VS Code settings. But yes, could surly adjust those with keybindings.

You must be right. I'm on linux myself so I probably changed that hotkey. My bad.

vscode-vtools doesn't seem to solve this for me; if I run a build command which opens the terminal, executes a single command, and then stops, continuing to type in my existing code panel doesn't close the terminal. Since the terminal never had focus, it doesn't count as losing focus? I have to click inside the terminal, then click back into the code to make the panel disappear, which is almost worse than having to press ctrl+` twice to put focus into the terminal, then close it.

I want to run a build command either without showing the output, or showing and then hiding the panel afterward without having to press anything extra. I just don't need to see the build output most of the time for my purposes, and I have a small laptop screen where every inch of vertical space is important.

UPDATE: I re-read the docs and learned there's a task option to never show the terminal in the first place. This is what I wanted! Docs here. Add this inside the task.json:

"command": "your command here",
"presentation": {
  "reveal": "never"
}

+1

I'm just wondering why this is still open. Should have a built in option or let the extensions do the show.
By the way, that's the amazing of the vscode. For who that like to auto hide the panes too, see this extension: Auto Hide

I'm just wondering why this is still open. Should have a built in option or let the extensions do the show.
By the way, that's the amazing of the vscode. For who that like to auto hide the panes too, see this extension: Auto Hide

I just tried it. It does exactly what I want! Thank you!

For keyboard shortcut users, here's my workaround.

Goal: to close all panels/sidebars and focus back on the editor on keystroke.

If you have a panel (terminal, console, linter, etc) or a sidebar (git, file explorer, etc) open or in focus, pressing the keybinding will focus your cursor back to the active editor tab and close all panels and sidebar.

Steps:

  1. Install geddski's macros extension
  2. Add to settings.json
    "terminal.integrated.commandsToSkipShell": [ "macros.switchToEditorHidePanes" ], "macros": { "switchToEditorHidePanes": [ "workbench.action.focusActiveEditorGroup", "workbench.action.closePanel", "workbench.action.closeSidebar" ] }
  3. Add to keybindings.json (I use esc key. Replace it what fits you best)
    json { "key": "escape", "command": "macros.switchToEditorHidePanes", "when": "panelFocus || terminalFocus " }, { "key": "escape", "command": "macros.switchToEditorHidePanes", "when": "editorIsOpen && sideBarVisible" }, { "key": "escape", "command": "macros.switchToEditorHidePanes", "when": "activePanel" },
  4. profit!
Was this page helpful?
0 / 5 - 0 ratings

Related issues

biij5698 picture biij5698  Â·  3Comments

curtw picture curtw  Â·  3Comments

trstringer picture trstringer  Â·  3Comments

omidgolparvar picture omidgolparvar  Â·  3Comments

chrisdias picture chrisdias  Â·  3Comments