Announcing: Collapse Selection in Solution Explorer extension

Announcing: Collapse Selection in Solution Explorer extension

Rate This
  • Comments 31

We have received much feedback asking for a feature that would recursively collapse nodes in the solution explorer. We are happy to announce the Collapse Selection in Solution Explorer extension!

What is the Collapse Selection in Solution Explorer extension?

Many Visual Studio users have a solution tree structure with multiple projects and solution folders that are organized as a deep hierarchy. To avoid visual pollution, users want only those projects expanded that are being actively developed (often with many of the project’s child nodes recursively collapsed). To accomplish this task, they have to manually collapse each node recursively – an onerous chore if one has a deeply nested solution tree. The Collapse Selection in Solution Explorer extension addresses this particular issue by enabling the user to recursively collapse multiple nodes with a single click.

How do I install the extension?

1. You can download the extension from the VS Gallery. Double-click the downloaded VSIX file and the extension will be installed.

2. You can navigate to Tools –> Extension Manager, and search for “Collapse Selection in Solution Explorer” in the Online Gallery. Simply download and click Install.

How does the extension work?

Once the extension is installed, you will see a button appear in the Solution Explorer bar. Choose any collapsible node (any node with children nodes; i.e. parent node) in the Solution Explorer and click the Collapse Selection button. All the children nodes will be recursively collapsed to show only the parent node. When you click the expand/collapse icon next to the just collapsed parent node, the parent node will expand to list all the children nodes which will appear collapsed if they have their own children nodes (see figure below). You can select the solution node and click the Collapse Selection button to recursively collapse all nodes in the solution tree. You can also select multiple collapsible nodes and click the Collapse Selection button to recursively collapse each of them.

image

I prefer using my keyboard. Is it possible to use this extension through keyboard shortcuts?

Definitely. Ensure that the focus is on the Solution Explorer and press Alt + Num(-) to collapse selected nodes. You can also use the Command Window by entering the following command: View.CollapseSelectionInSolutionExplorer.

Is this extension limited to certain project types?

No. This extension should work with all project types.

How can I provide feedback?

We love feedback!

1. Comment on this blog post.

2. Log onto Connect and file a bug.

Luau in Hawaii

 Richa Prasad – Program Manager, Visual Studio Project Team

 Short Bio: I am a PM on the Visual Studio Project System team. I work on many Project features such as conversion, solution load, references, project properties and others. Prior to joining Microsoft, I was a graduate student at University of Washington.

Leave a Comment
  • Please add 5 and 4 and type the answer here:
  • Post
  • The Express editions support installing templates and/or controls, which is why they have the Extension Manager.  They do not support installing other types of 3rd party extensions (packages/MEF/etc.).

    Thanks,

    Gearard

  • Nice! Thank you.

  • Shemesh, you can try this: visualstudiogallery.msdn.microsoft.com/.../d491911d-97f3-4cf6-87b0-6a2882120acf It has Locate in Solution Explorer option as well as collapse all / selected nodes.

  • I used to use Macro for collapsing all level nodes, and had been working just fine. However, I recently had to create a solution that contained "solution folders", and each solution folder held an n-tier project.  This didn't collapse properly.

    I installed this extension from Richa, and it worked just as expected.  Thank you so much for the simple and elegant solution.

  • Awesome. This was starting to get on my nerves.

  • Owen, VS expands your nodes because you have View, Track Activity in Solution Explorer checked. If it's not on your View menu, look for it in Toolbars, Customize, Add Command, View...

  • Owen, VS expands your nodes because you have View, Track Activity in Solution Explorer checked. If it's not on your View menu, look for it in Toolbars, Customize, Add Command, View...

  • The *, + and - on the numeric pad controls this. After pressing ctrl/alt/L just position on the folder to expand and press *. To collapse press -. Then if you have collapsed some sub-folders, press + to return to your partially collapsed version.

  • Does anyone know if this works in VS2008

  • This extension is only supported on VS2010.

  • Great article ..Helped us a lot .when we bought all our projects into a single solution and plucking our heads out in scrolling up and down. Thnak You.

  • It says

    This extension contains a digital signature with an invalid certificate.

  • @Invalid ceritifcate on vsix install - a new VSIX has been uploaded with a non-expired certificate. visualstudiogallery.msdn.microsoft.com/cb0ec47d-05a4-40a7-ba39-9a2da6492f1c

  • Does this work with VS 2012?  If not, will an update be coming out soon?

  • Nice would be if this worked at the Solution node and collapsed everything. Same with VS2012 which does not do this.

Page 2 of 3 (31 items) 123