Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collapse all Visual Studio toolbox regions shortcut

Is there a keyboard shortcut or macro to collapse all regions in Visual Studio's toolbox? (Failing either of those, I'll take an addin that allows this!)

like image 357
Sean Kearon Avatar asked May 10 '09 17:05

Sean Kearon


People also ask

How do I Collapse all regions in Visual Studio?

(Ctrl+M, Ctrl+P) - Removes all outlining information for the entire document. (Ctrl+M, Ctrl+U) - Removes the outlining information for the currently selected user-defined region. Not available in Visual Basic. (Ctrl+M, Ctrl+O) - Collapses the members of all types.


2 Answers

While the focus is on the toolbox, press / to Collapse All.

You can also Expand All by pressing SHIFT+8

Here's an article by Sarah Ford with more information: Visual Studio Tip #186

BEFORE:

alt text
(source: msdn.com)

AFTER:

alt text
(source: msdn.com)

like image 120
Jose Basilio Avatar answered Sep 21 '22 01:09

Jose Basilio


Shift + Alt + Enter is your friend.

Also see Window>Auto Hide All

like image 31
Daniel Avatar answered Sep 19 '22 01:09

Daniel