TODO Comments in the Task List
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):
In C#, it's pretty much the same thing (again, case doesn't matter):
C++ requires that the “TODO” be in upper-case or it will not show up in the Task List:
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:
Regardless which language you use the result is a nice entry in your Task List:
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.