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.

1
  • 1
    How is this related to ASP.NET MVC?
    – lbrahim
    Jan 23, 2015 at 10:37

2 Answers 2

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))

2
  • 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.
    – LosManos
    May 27, 2017 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, 2022 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.

2
  • 3
    Auto-hide is nice, yes. If only there was also a way to bring it back to the former state...
    – z33k
    Nov 10, 2020 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
    – Bulat
    Nov 30, 2021 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.