.NET Zone is brought to you in partnership with:

Merrick Chaffer is a Software Developer with Russell Reynolds Associates, with over 16 years experience in areas relating to Microsoft Application Development. Merrick is a DZone MVB and is not an employee of DZone and has posted 37 posts at DZone. You can read more from them at their website. View Full User Profile

Using custom TODO tags in Resharper

03.15.2012
| 3998 views |
  • submit to reddit

Today I stumbled across a very neat little feature in Resharper that can help immensely when carrying out large code refactoring on a solution as we're doing now currently in our code base. (http://www.jetbrains.com/resharper/webhelp/Configuring_ReSharper__Sharing_Configuration_Options.html )

Turns out you can set up custom tags for the TODO item explorer, and use these to jump quickly through the code base to locations that you need to come back to at a later date (using Ctrl+Alt+PgDown when the TODO item explorer is the active window)

We've created a custom tag of DBR to easily search for code areas relating to database refactor tasks that need doing still. ..

clip_image001

This then automatically gets added to anyone working on our branch via saving off the custom tag into the team MySolution.sln.DotSettings file, which is then added to source control as a Solution Item…

clip_image002

Then, with the TODO item explorer (Ctrl+Alt+D) you can filter for these tags only in code as follows…

clip_image003

If you have any custom tags you wish to add to the team shared folder then you'll need to copy them to the team shared file (ensure you have it checked out first), via the Resharper, Manage Options, menu option as follows…

clip_image004 clip_image005

More information here about all of this...

http://www.jetbrains.com/resharper/webhelp/Configuring_ReSharper__Sharing_Configuration_Options.html

Published at DZone with permission of Merrick Chaffer, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Imdadyano Yano replied on Fri, 2012/03/16 - 12:55am

Hello,

 

Thanks for the information on resharper. I am using the resharper tool but was unaware of this features. I went thorugh the microsoft link for the resharper. Link is http://visualstudiogallery.msdn.microsoft.com/EA4AC039-1B5C-4D11-804E-9BEDE2E63ECF and it help me a lot. Thanks once again for your effort.

THanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.