Geeks With Blogs
HanSolo code monkey
I've always found it kind of useful to be able to leave "to do" markers in your code when you are developing with Visual Studio. Often times, as I am writing code, I like to leave some to do comments in areas of my code that I intend to come back and re-examine or refactor. This is the syntax of the to do comment:

//TODO: need to write better code here

When you build, Visual Studio will keep track of these comments, allowing you to jump back into that code whenever you feel like it. Always thought that was kind of nifty.

Read more about that here:
http://msdn.microsoft.com/en-us/library/zce12xx2(VS.80).aspx

I sometimes would use this pre-processor statement as well:

#warning

which shows up as warnings when you build. Posted on Monday, February 23, 2009 11:27 PM | Back to top


Comments on this post: Visual Studio Task Comments

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © HanSolo | Powered by: GeeksWithBlogs.net