Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto hide panel #10952

Open
ghost opened this issue Aug 25, 2016 · 52 comments
Open

Auto hide panel #10952

ghost opened this issue Aug 25, 2016 · 52 comments
Labels
feature-request Request for new features or functionality layout General VS Code workbench layout issues
Milestone

Comments

@ghost
Copy link

ghost commented Aug 25, 2016

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.

@ghost ghost changed the title Auto show/hide terminal window Auto show/hide terminal window [Feature Req] Aug 25, 2016
@sandy081 sandy081 added the terminal General terminal issues that don't fall under another label label Aug 25, 2016
@Tyriar
Copy link
Member

Tyriar commented Aug 25, 2016

Related: #3742

@Tyriar Tyriar added feature-request Request for new features or functionality workbench labels Aug 25, 2016
@Tyriar Tyriar removed their assignment Aug 25, 2016
@Tyriar Tyriar added this to the Backlog milestone Aug 25, 2016
@joelpresence
Copy link

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

Thanks.

@Tyriar
Copy link
Member

Tyriar commented Aug 17, 2017

No ETA, #2806 will probably get looked at before this one.

@alekseyt
Copy link

+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.

@bpasero bpasero removed the workbench label Nov 16, 2017
@iammruni
Copy link

+1

@lempax
Copy link

lempax commented Apr 3, 2018

I would also want this feature. +1

@radutomy
Copy link

radutomy commented Apr 5, 2018

+1

1 similar comment
@dimaaleks
Copy link

+1

@Nyalothas
Copy link

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

@KeyC0de
Copy link

KeyC0de commented Apr 13, 2018

+1

1 similar comment
@vinod85
Copy link

vinod85 commented Apr 23, 2018

+1

@GroomedGorilla
Copy link

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

@Odame
Copy link

Odame commented May 3, 2018

+1

@SilverPreece
Copy link

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.

@Trass3r
Copy link

Trass3r commented Jun 1, 2018

@GregJPreece any luck?

@dreamsComeTrue
Copy link

+1 Please add this feature :)

@dberthia
Copy link

+1

@GroomedGorilla
Copy link

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

@EwanDubashinski
Copy link

+1

@uniapi
Copy link

uniapi commented Jul 4, 2018

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

@isidorn isidorn self-assigned this Oct 9, 2019
@kieranbenton
Copy link

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.

@robots4life
Copy link

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.

@robots4life
Copy link

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.

@rpgdev
Copy link

rpgdev commented Dec 8, 2019

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

You can just do ctrl+`

@robots4life
Copy link

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.

@rpgdev
Copy link

rpgdev commented Dec 12, 2019

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.

@Splendorr
Copy link

Splendorr commented Feb 5, 2020

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"
}

@isidorn isidorn assigned sbatten and unassigned isidorn May 4, 2020
@lebtron
Copy link

lebtron commented May 18, 2020

+1

@lucianotres
Copy link

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

@lebtron
Copy link

lebtron commented May 26, 2020

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!

@jonyeezs
Copy link

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"
  ]
}
  1. Add to keybindings.json (I use esc key. Replace it what fits you best)
   {
     "key": "escape",
     "command": "macros.switchToEditorHidePanes",
     "when": "panelFocus || terminalFocus "
   },
   {
     "key": "escape",
     "command": "macros.switchToEditorHidePanes",
     "when": "editorIsOpen && sideBarVisible"
   },
   {
     "key": "escape",
     "command": "macros.switchToEditorHidePanes",
     "when": "activePanel"
   },
  1. profit!

@leopucci
Copy link

leopucci commented Dec 6, 2021

This extension do this.
https://marketplace.visualstudio.com/items?itemName=sirmspencer.vscode-autohide
I don´t like it tottally because then you dont have a button to open again.
So I add together with this one to have the panel button to open it back
https://marketplace.visualstudio.com/items?itemName=jerrygoyal.shortcut-menu-bar

@ssbarnea
Copy link

@jonyeezs I love the use of "ESC" to do this but I think your solution is missing the second part: restoring the terminal when you press ESC inside the editor, so we can have the full round-trip. Have you one a solution for that?

@jonyeezs
Copy link

@jonyeezs I love the use of "ESC" to do this but I think your solution is missing the second part: restoring the terminal when you press ESC inside the editor, so we can have the full round-trip. Have you one a solution for that?

I just open terminal as per normal keyboard shortcut.

So no single shortcut to rule them all

@teddybear
Copy link

+1

@maxrzaw
Copy link

maxrzaw commented Jan 6, 2023

One of the problems with how auto hide is implemented in Visual Studio is that the terminal will not auto hide when my cursor is above it, even if I have started typing in the editor. Please do not add that annoying behavior to VSCode.

@Kemeros
Copy link

Kemeros commented Mar 1, 2023

Would love something like this

@ColinStroud
Copy link

Please add this or the ability to set one of the following: Disable Autoshow, Disable Logging, Location="none" (or similar).

@natrist
Copy link

natrist commented Apr 4, 2023

Yes, I would like a simple way to hide the 'Problems' panel (problems, errors, output, terminal tabs), because it takes too much monitor estate and it drives me crazy to have to hide it after almost every operation.

@hugows
Copy link

hugows commented Sep 16, 2024

Still looking for this on the year of 2024 :)

@benibenj benibenj removed their assignment Dec 11, 2024
@ecormier-alludo
Copy link

Just do what QtCreator does: hide the bottom window with the ESC key. The way they do it is perfect; they figured it out long ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality layout General VS Code workbench layout issues
Projects
None yet
Development

No branches or pull requests