I know that I can use Arrow Keys to collapse items of solution explorer one by one, but I would like to know if there is a way to collapse all items with only one operation. I w
Just use the number pad's Plus + and Minus - keys at the top-level node, to expand and collapse respectively (Note: * also expands the whole list.)
For the toolbox, you need to use * and / instead for expand/collapse. Go figure.
Using Visual Studio 2017 and above
use shortcut
To Collapse All
Add a new shortcut for example Ctrl+Left Arrow,Ctrl+Left Arrow
To Expand All
Add a new shortcut for example Ctrl+Right Arrow,Ctrl+Right Arrow
Assign > OK
There's a macro at http://geekswithblogs.net/scottkuhl/archive/2007/04/09/111195.aspx for Visual Studio 2005.
Visual Studio 2012 is out on 8/15/2012, so I suggest upgrading to that to get a fast "Collapse All" toolbar button previously available only in the Productivity Power Tools' Solution Navigator, which was sometimes too slow to be usable.
take a look on this
http://visualstudiogallery.msdn.microsoft.com/en-us/7272073b-32d4-4a84-93f7-77d09fb16f01
You can use PowerCommands for Visual Studio 2008
Right click on the project\solution on the solution explorer and choose Collapse Project: