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

Jon Tackabury picture Jon Tackabury · Dec 2, 2008 · Viewed 47.6k times · Source

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?

Answer

Guge picture Guge · Dec 2, 2008

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.