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

2

27

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.

Shwalb answered 23/1, 2015 at 9:37 Comment(1)
How is this related to ASP.NET MVC?Valeryvalerye
J
42

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

John answered 23/1, 2015 at 15:22 Comment(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.Oryx
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.Assembled
O
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.

Oryx answered 27/5, 2017 at 13:5 Comment(2)
Auto-hide is nice, yes. If only there was also a way to bring it back to the former state...Camelopardalis
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 thisZoophilous

© 2022 - 2024 — McMap. All rights reserved.