July 15, 2005

TODO



I think the CLR team should add support for the keyword TODO to the language. TODO seems to be strewn about my code these days, and it would save me from having to comment it out all the time. TODO == noop?

Maybe a macro would do it?



jk

2 comments:

Brian Lounsberry said...

This macro already exists. It starts with two forward-slashes, followed by 'TODO', such as:

//TODO

This is also built into Visual Studio as a hotkey. You type TODO where you want the macro, and then press (ctrl)+k,c to enable it. This is NOT to be confuzed with (ctrl)+k,d.

jeff said...

Yes, CTRL+K, C is a most fab chord and i make extensive use of it.

The technique described here takes 7 keystrokes (T O D O CTRL K C) where the proposed technique would take only 4 keystrokes. This represents roughly 57% increase in my productivity.

This 57% would likely be that time that I classicly underestimate nearly all development tasks :)

cheers
jk