Visual Studio Task Comments

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 @ Monday, February 23, 2009 11:27 PM
Print

Comments on this entry:

No comments posted yet.

Your comment:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«May»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678