Click here to Skip to main content
Click here to Skip to main content

Tagged as

Visual Studio 2010 extension for collapsing Solution Explorer items

, 19 Jun 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
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.  


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


About the Author

Ashoka RKT
Technical Lead
India India
I am Ashoka (R.K.T.Ashoka), I am a software professional who is passionate about designing and developing software applications. I blog at, I will be writing about .Net & programming.
Follow on   Twitter   LinkedIn

Comments and Discussions

QuestionUseful extension but not perfect one. PinmemberMember 809749225-Jun-12 11:44 
AnswerRe: Useful extension but not perfect one. PinmemberRKT.Ashoka26-Jun-12 1:07 
GeneralRe: Useful extension but not perfect one. PinmemberMember 809749226-Jun-12 5:27 
GeneralRe: Useful extension but not perfect one. PinmemberRKT.Ashoka3-Jul-12 7:42 
GeneralRe: Useful extension but not perfect one. PinmemberMember 80974923-Jul-12 12:13 
GeneralMy vote of 2 PinmemberKlaus Luedenscheidt19-Jun-12 18:51 
GeneralRe: My vote of 2 PinmemberRKT.Ashoka21-Jun-12 2:26 
GeneralMy vote of 5 PinprotectorAspDotNetDev19-Jun-12 15:19 
GeneralRe: My vote of 5 PinmemberRKT.Ashoka21-Jun-12 2:26 
GeneralMy vote of 1 Pinmemberemperon19-Jun-12 3:00 
GeneralRe: My vote of 1 [modified] PinmemberRKT.Ashoka19-Jun-12 7:35 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150129.1 | Last Updated 19 Jun 2012
Article Copyright 2012 by Ashoka RKT
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid