Search code examples
javaeclipsetodo

Custom TODO mark in Eclipse


In a Eclipse a // TODO comment in a Java file marks an area in code as a task for later consideration.

Is there a way to add other expressions that will do the same?

For example if I want to use // myprojectname.


Solution

  • Window > Preferences > Java > Compiler > Task Tags

    You can add new tags to your heart's content.


    NOTE: Why the Eclipse guys made this a Compiler setting is beyond me. It just makes the setting hard for people to find, so it rarely gets customized.