Visual Studio 2005 has one interesting feature: if you write TODO in a code comment(or any other token defined in Options -> Environment -> Task List) that comment will appear in the Task List pane, making this perfect a perfect way to add notes to the source code and gather them all in one place to check later.
// TODO Assign variable this later
int a = 0;
But there’s just one problem, the comments in the Task List are just the ones that appear in the file currently opened in VS 2005, making a bit difficult to track them all in larger projects. A nice workaround is explicitly define a compile warning for these TODO’s, instead of using a comment, just like this:
#warning TODO Assign variable this later
int a = 0;
This way all the TODO’s in one project can be checked in one place
Technorati Tags: visual studio 2005


internet