Getting all projects and folders in solution explorer to collapse

Category: c# ide


TheLearner on Thu, 15 Oct 2009 10:50:38

I have a solution which has a lot of projects and solution folders and sometimes when I open the solution all the projects are expanded in the solution explorer - is there anyway I can click one button and they all retract instead of having to click - on each project and folder?


CoolDadTx on Thu, 15 Oct 2009 13:47:45

There is no built in way to do this AFAIK.  You'd have to write a macro to do it.

Michael Taylor - 10/15/09

TheLearner on Thu, 15 Oct 2009 13:49:44

OK thanks.  Is there any website where I can post suggestions for the next version of VS?

CoolDadTx on Thu, 15 Oct 2009 14:25:05 is the place to post suggestions or bugs against VS.  However VS2010 is pretty close (if not at) feature freeze so it's too late for 2010.  They could add it in a service pack or later version so it never hurts.  I was going to check to see if Beta 1 has such a feature but my VM with 2010 in it died so I can't confirm right now.

Nevertheless this has already been given as a suggestion once:
Here's some workarounds for current versions:

Michael Taylor - 10/15/09

TheLearner on Mon, 19 Oct 2009 08:31:55

I see this feature has been suggested about 5 years ago - so I guess Microsoft has no plans of implementing it as it could have been for 2008, or 2010!

Alex Stuart on Tue, 18 Sep 2012 14:45:59

You can click on the root file in Solution Explorer and press DownArrow-LeftArrow repeatedly, which should be fairly quick.