TODO Comments in the Task List

Versions:  2008,2010
Published:  6/7/2010
Code:  vstipTool0029

 

Ever been writing some code and you want to leave a reminder to yourself to do something on a particular line or area?  Did you know about the "to do" comment feature?  It seriously rocks if you have never used it AND, because it goes in the source code, everyone can have access to the information when you do you check-in!

 

So here's how it works:  In VB you just put any comment in that begins with the letters "todo" (case doesn't matter):

image

 

In C#, it's pretty much the same thing (again, case doesn't matter):

image

 

C++ requires that the “TODO” be in upper-case or it will not show up in the Task List:

clip_image002 

 

 

In C++ for VS2010 you have to explicitly turn this feature on.  Go to Tools | Options | Text Editor | C/C++ | Formatting | Miscellaneous and change Enumerate Comment Tasks to true:

clip_image004 

 

 

Regardless which language you use the result is a nice entry in your Task List:

clip_image006 

 

NOTE:  In order to see these items, you have to click the drop-down list in the Task List and choose Comments as shown here.