65.9K
CodeProject is changing. Read more.
Home

Visual Studio 2010 extension for collapsing Solution Explorer items

starIconstarIconstarIconstarIconemptyStarIcon

4.00/5 (4 votes)

Jun 19, 2012

CPOL

1 min read

viewsIcon

29021

Recursively collapse child items.

I have recently realised how folks get significantly uncomfortable and could also loose little amount of productivity speed when navigating Solution Explorer which is in a state of mess due to randomly expanded and collapsed Solution Explorer items, it surely causes at least a tiny amount of lack of clarity.

The basic TreeView control or Tree control is a common windows control found in many places in Windows OS, including Windows Explorer. The same is found in Visual Studio’s Solution Explorer, for those who are not aware; this control supports some keyboard shortcuts, I mean whether you are in Windows Explorer or Visual Studio Solution Explorer you can select a node’s parent and use these shortcuts.

+ (plus) --> Expand

- (minus) --> Collapse

* (asterick) --> If you would like to expand recursively a particular item's child items

But there is no shortcut to collapse recursively. 

Collapse Selection in Solution Explorer extension is available for Visual Studio 2010 that adds an icon to the Solution Explorer (shown below), clicking which recursively collapses the child items. You can press Ctrl + Alt + Num(-) - numeric keypad’s '-' to use it. This extension is better than the functionality in “PowerCommand for Visual Studio 2010” extension, as explained in the above link.