Search code examples
c#c++comments

How do you flag code so that you can come back later and work on it?


In C# I use the #warning and #error directives,

#warning This is dirty code...
#error Fix this before everything explodes!

This way, the compiler will let me know that I still have work to do. What technique do you use to mark code so you won't forget about it?


Solution

  • Mark them with // TODO, // HACK or other comment tokens that will show up in the task pane in Visual Studio.

    See Using the Task List.