Geeks With Blogs

News

Mike Parks Code.Where(c => c.IsTechnicalDebt).Refactor();

If your team has recently upgraded to Visual Studio 2010, take a second to check out the new Extension Manager. You can use it to browse through or install tons of tools, controls, or templates from the Visual Studio Gallery.

My friend, Cory Cissell, and I recently teamed up and created an extension of our own called "Collapse Solution". It adds an option called Collapse Solution to the context menu of the solution node in the solution explorer. It also adds an option called Collapse Project to the context menu of each project node in the solution explorer. When that option is clicked, it will walk through the solution explorer tree and collapse any expanded child nodes in that section (projects, folders, code behind files, designer files, etc.). I use to have an add-in that did this in Visual Studio 2008 but it wasn't compatible when we upgraded to 2010 so we decided to write our own. The old tool was also packaged with a bunch of other junk that we didn't need so we figured it would be a much cleaner tool if it was broken off into its own extension. There's no need to install extra tools if you don't really need them.

So if you have upgraded to Visual Studio 2010, please feel free to try out our Collapse Solution extension and leave us a rating/review in the Visual Studio Gallery. Thanks!

Here's the link: http://visualstudiogallery.msdn.microsoft.com/en-us/2d81fec6-71f3-4fa5-87b4-c2aa18e42f92

- Mike

 

Posted on Tuesday, April 20, 2010 10:12 PM | Back to top


Comments on this post: New Visual Studio 2010 Extension - Collapse Solution

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
this is one great extension!
bits me why it is not implemented into VS.
BUT...
when you have solution folders in your project the collapsing is not working properly.
can this be fixed?
Left by Shemesh on Apr 25, 2010 6:37 AM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
take a look at this great macro:
http://blogs.thesitedoctor.co.uk/tim/2010/02/27/Collapse+All+Solution+Explorer+Items+In+Visual+Studio+2010.aspx
Left by Shemesh on Apr 26, 2010 1:56 AM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
Thanks for the response Shemesh. That macro was actually one of the reasons we decided to write this extension. Our extension works a lot faster than the macro and also allows you to collapse at the project level. We're going to look into the issue with the solution folders. Are you using Visual Studio Version 4.0.30319 RTMRel? Thanks again

- Mike
Left by Mike Parks on Apr 26, 2010 8:09 AM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
Version 1.4 has been published. The collapse solution logic looked like it was functioning fine. We did find a problem with the collapse project logic when a project was nested inside a solution folder. This has been fixed and published.
Left by Mike Parks on Apr 26, 2010 11:12 AM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
Hey Mike,

Can you share a source code of this extension?
Left by Koistya `Navin on Sep 23, 2010 1:16 AM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
Koistya, we haven't planned on releasing the code for the extensions. A really good source for this is here though:

http://code.msdn.microsoft.com/PowerCommands

Download PowerCommandsSource.zip in the downloads tab and it should get you what you need plus more. It's a 2008 version but the majority of the source is still the same. The only difference it the way you connect to TFS 2010. This link will help you the most though:

http://code.msdn.microsoft.com/vsx

There's tons of samples out there to download with a bunch of different scenarios. Check it out.
Left by Mike Parks on Sep 24, 2010 8:24 AM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
Love the extension, thanks for writing this.

Do you know if there is a way to map a keyboard shortcut to run an extension?
Left by Ben on Nov 12, 2010 11:07 AM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
Thanks Ben, glad you like it. The extension should already be mapped to "Ctrl + Shift + Q".
Left by Mike Parks on Nov 12, 2010 1:25 PM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
I've been looking for exactly something like this for VS2008. Anyone know if it works with 2008 or of any other tool that does?
THanks!
Left by jmadden93 on Mar 07, 2011 11:02 AM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
thanks so much !! great improvement
Left by mike on Mar 06, 2012 4:58 PM

# re: New Visual Studio 2010 Extension - Collapse Solution
Requesting Gravatar...
Just only a word: A-M-A-Z-I-N-G!!

I've recently found also Snip2Code, for the management of my snippets. Seems interesting and maybe can be used together to have the complete management of both the entire solutions and the little code snippets...
Check it at: http://www.snip2code.com/Static/Downloads
Bye!
Left by Carlo Gherboli on Nov 09, 2012 2:29 PM

Your comment:
 (will show your gravatar)


Copyright © MikeParks | Powered by: GeeksWithBlogs.net