How to collapse all projects in a Visual Studio 2008 solution

For ages my team and me have been wanting an easy way to navigate all the projects in our Visual Studio solutions, admittedly we have far too many projects, but forgetting that for a moment it becomes such a pain to expand/collapse the relevant solution folders and projects. We found the occasional macro that did the trick partially, but never really fully satisfied the requirement.

But recently a colleague discovered The “PowerCommands for Visual Studio 2008“. One of the commands is:

Collapse Projects
This command collapses a project or projects in the Solution Explorer starting from the root selected node. Collapsing a project can increase the readability of the solution. This command can be executed from three different places: solution, solution folders and project nodes respectively.

Another great tool!


About Alex McMahon

I am a software developer, interested in .net, agile, I've previously specialised with .net 3.0 technologies like WCF, whereas now I am trying to specialise in agile development and best practice and patterns. I am obsessed with looking at the latest technologies, tools, and methods, and trying them out. I am currently employed by Rockwell Collins in the UK.
This entry was posted in development, Visual Studio 2008. Bookmark the permalink.

3 Responses to How to collapse all projects in a Visual Studio 2008 solution

  1. Chris says:

    Awesome, I had this tool installed and didn’t even know the command was there. Thanks for the tip

  2. Matheus says:

    Sorry, I didn’t realize that the post is in English and I answered in Portuguese. These are my comments (IN ENGLISH):

    I don’t like the Power Commands. There’re some incompatibilities with Visual Studio, causing the necessity of keep doing upgrades (on both) or reinstalling them, making the functionalities, once crashed, to work again.
    On example that I experienced was the window Pending Changes (TFS Source Safe), that crashes the application (Visual Studio), depending on the version of VS and/or Power Commands.
    But the Collapse Projects function is really interesting.
    I’ve been seeing some other ways to make something similar:

    Tks and sorry again about the portugues and maybe, now, about my poor english.

  3. Awesome! I am looking for this.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s