Posts
74
Comments
75
Trackbacks
0
Ever want to add regions to your .NET code quickly?
improve my => 'code'

I do this quickly now with a free tool from Meridium made available by the good people at CodeProject.com (1000 Thanks)

http://www.codeproject.com/csharp/documentatormacros.asp

Follow the directions to install (I appreciate the fact that the tool works without problems with Resharper), and just click on the method for which you want to add regions, and type <control> + d.  It even tries to add comments, but will not interfere with you previous comments made (nice!)

The two other shortcuts I love are:

Expand All Regions: <control> + <shift> + <+> 

Condense All Regions:<control> + <shift> + <->

These commands are so much better than Outlining -> Toggle All Outlining command in Visual Studio as that command toggles the structures inside regions as well (which I find annoying).

Hope this helps!

Jonathan

Tools   Print   Email   Del.icio.us   Digg   reddit
posted on Sunday, November 18, 2007 3:52 PM Print
Comments
Gravatar
# re: Ever want to add regions to your code quickly?
Scott Kuhl
11/18/2007 8:51 PM
I don't program on the toilet so I'm pretty sure that key combination won't work.
Gravatar
# re: Ever want to add regions to your code quickly?
Jon
11/18/2007 9:39 PM
thanks for bringing this up! (post has been corrected so that shift is spelled correctly.)

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 8 and 4 and type the answer here:
News
Jonathan Starr is a developer in Saint Louis, MO. He holds an MBA in Finance from Columbia Business School and earned his MCSD from Microsoft.


All statements in this blog are personal opinions and do not reflect the opinions of his employer.





Related Sites
Join My Community at MyBloglog!

Tag Cloud