Loading...

Saturday, August 16, 2008

Show TODO comments in the Task List window of NetBeans

Besides errors we can also display our TODO comments in the Task List window. It is useful to have an overview of these comments, so we can jump right to the source and fix our TODO. The following screenshot shows Java source code with different comments and the Task List window:

We can define which keywords make up a TODO comment. In Tools | Options | Miscellaneous | ToDo Tasks we can define patterns, which make up a TODO comment. If the pattern is found in a source file, it will show up in the Taks List window:

4 comments:

Anonymous said...

Thanks. I'm used to Eclipse where the ToDos are icons on the left of each line (like the errors in netbeans). Now i found that TaskList (Window | Task) and can view the ToDos of each file :)

Josh said...

Thank you Mrhaki. This is exactly what I was looking for. I see you can add custom filters as well! :)

Anonymous said...

Very useful, thanks.
Bruno

Anonymous said...

Thanks for the post. I'm using NetBeans 7.1, and the feature is now located at Options > Miscellaneous > Tasks > ToDo Patterns

Post a Comment