Click here to Skip to main content
15,884,425 members
Articles / IDE
Tip/Trick

Visual Studio 2010 extension for collapsing Solution Explorer items

Rate me:
Please Sign up or sign in to vote.
4.00/5 (4 votes)
19 Jun 2012CPOL1 min read 28.1K   2   11
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.  

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
India India
I am Ashoka (Ashoka.R.K.T.), I am a software professional who is passionate about designing and developing great applications. I blog at https://ashokaon.tech, I will be writing about all things technology and coding.

Comments and Discussions

 
QuestionUseful extension but not perfect one. Pin
Pouya Javadzadeh25-Jun-12 10:44
Pouya Javadzadeh25-Jun-12 10:44 
AnswerRe: Useful extension but not perfect one. Pin
Ashoka RKT26-Jun-12 0:07
professionalAshoka RKT26-Jun-12 0:07 
GeneralRe: Useful extension but not perfect one. Pin
Pouya Javadzadeh26-Jun-12 4:27
Pouya Javadzadeh26-Jun-12 4:27 
GeneralRe: Useful extension but not perfect one. Pin
Ashoka RKT3-Jul-12 6:42
professionalAshoka RKT3-Jul-12 6:42 
GeneralRe: Useful extension but not perfect one. Pin
Pouya Javadzadeh3-Jul-12 11:13
Pouya Javadzadeh3-Jul-12 11:13 
GeneralMy vote of 2 Pin
Klaus Luedenscheidt19-Jun-12 17:51
Klaus Luedenscheidt19-Jun-12 17:51 
GeneralRe: My vote of 2 Pin
Ashoka RKT21-Jun-12 1:26
professionalAshoka RKT21-Jun-12 1:26 
GeneralMy vote of 5 Pin
AspDotNetDev19-Jun-12 14:19
protectorAspDotNetDev19-Jun-12 14:19 
GeneralRe: My vote of 5 Pin
Ashoka RKT21-Jun-12 1:26
professionalAshoka RKT21-Jun-12 1:26 
GeneralMy vote of 1 Pin
emperon19-Jun-12 2:00
emperon19-Jun-12 2:00 
GeneralRe: My vote of 1 Pin
Ashoka RKT19-Jun-12 6:35
professionalAshoka RKT19-Jun-12 6:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.