Collapse all files at once in Solution Explorer in Visual Studio

Is there a way to collapse all files at once in the solution explorer window in Visual Studio?

+4
source share
6 answers

Use the Minimize Solution extension. This feature usually comes with ReSharper , but I assume you are not using ReSharper.

There are also many macros to help you do the same. One of them is in Collapse All in Visual Studio .

Note. There is no built-in way in Visual Studio to actually achieve this. And considering how practical this is, I would think that they would add this feature to Visual Studio 2005. I know that people have been asking for this for many years. But in its infinite wisdom, Microsoft does not consider this important enough.

+5
source

Visual studio 2013 has a button in the solution browser - Collapse All enter image description here

+4
source

I think this extension requested functionality - PowerCommands for VS 2010 . Performance Power Tools also contains a solution navigator, which also has this feature and much more useful material for navigating and finding solutions.

Edited: there are also many macro examples doing this.

+2
source

Try the VSCommands 2010 Lite extension . This has a few other free features.

+1
source

In Visual Studio 2013, you can do this by right-clicking on Solution → Collapse All

+1
source

Of course, you can collapse any selected node by clicking '-', but I understand that you probably want to collapse the whole tree.

-1
source

All Articles