Do you want to add TODO when creating methods / classes? Then you can use code templates for this. Like the // TODO Auto-generated method stub , when you create a method, you can put any other comment on top of the method. Window → Preferences → Java → Code Style → Code Templates
Or do you want to add TODO to all the methods / classes that currently exist? It's a little trickier, you can write a plugin that will do it for you: Eclipse JDT
If TODO should always be created when you modify a class or method, you can also write an eclipse plugin that controls CompilationUnit in the editor. See recordModifications() here
source share