25

Is there a Hotkey to pin / auto hide a panel like Solution Explorer?

It would be a good combinations with CTRL+ALT+L which focus Solution Explorer.

LosManos
  • 7,195
  • 6
  • 56
  • 107
radbyx
  • 9,352
  • 21
  • 84
  • 127

2 Answers2

41

You can close any panel using Shift + Esc. So hit the key combination with the focus on the solution explorer and it will close. You can then use the shortcut that you mentioned to open the solution explorer again.

If you'd rather auto-hide and dock the panel instead of closing it, you can define shortcuts for Window.AutoHide and Window.Dock.

For Example:

Window.AutoHide (Shift+Space(Global))

Window.Dock (Shift+Alt+Space(Global))

Hamid Sadeghian
  • 494
  • 1
  • 7
  • 11
Lukkha Coder
  • 4,421
  • 29
  • 25
  • This shortcut unfortunately does not work if the panel already is docked. The only somewhat solution I have found for this is menu:Window->Auto hide all windows as presented in [MSDN](https://blogs.msdn.microsoft.com/zainnab/2010/06/18/auto-hide-all-tool-windows/). – LosManos May 27 '17 at 12:53
  • `Let's agree` to use `Ctrl+P,Ctrl+D` to `dock` the current panel and `Ctrl+P,Ctrl+H` to `hide` the current panel. Just as a convention. – Sahin Apr 28 '22 at 11:25
5

At least in Visual studio 2015 and 2017 there is a command Window.AutoHide that does the trick for already docked panels. It is the same as menu:Window->Auto hide all and it autohides all panels in the same stack. Either use standard menu command AltW A respective AltW U or give it a shortcut of its own.

LosManos
  • 7,195
  • 6
  • 56
  • 107
  • 3
    Auto-hide is nice, yes. If only there was also a way to bring it back to the former state... – z33k Nov 10 '20 at 12:59
  • Is there a way to bind Auto-hide and Dock to a single button? So you can toggle it. In rider or other JetBrains IDEs it's very easy to achieve this – Krrkrkrkr Nov 30 '21 at 08:33