Reputation: 2642
I have switched from Eclipse to Netbeans. Eclipse has a way too highlighting TODO's in Java comments like:
public void test(String str) {
// TODO: check if str is null!
...
...
}
In Eclipse I could change the editor configuration so that the TODO was printed bold or in another color. Is there a way to set that up in Netbeans?
Upvotes: 26
Views: 21916
Reputation: 35
I have not found out yet, if it's possible to highlight a code line that contains "todo" in Apache NetBeans Version 17 But in Version 17 you can go to "Windows->Action Items" and a window will pop up with all todos it can find in the current file. When i opened it the first time it took a minute to index all. Hope this helps.
Upvotes: 0
Reputation: 441
In netbeans 8.2 its called Action Items and you can find it in Window tab > Action items. Maybe this link can be useful: http://www-acad.sheridanc.on.ca/~jollymor/prog24178/nbActionItems.html
Add custom keywords (DOTO instead of TODO): https://www.youtube.com/watch?v=HsENrzwsiOw
Upvotes: 1
Reputation: 1533
There is a plugin "Editor TODO Highlighting", which highlights TODO's in JavaDoc syntax.
But it is only available in nightly builds of netbeans through plugin portal. Here's the issue.
Upvotes: 4
Reputation: 4648
There's a helpful Netbeans feature that has been renamed to Action items in version 7.4 and has formerly been known as Todo Tasks. To show occurences of keywords in comments like TODO
or FIX
in a separate list go to Window/Action Items. The listed keywords can be configured in Tools/Options/Miscellaneous/Action Items.
Upvotes: 68
Reputation: 187
I was able to achieve something close in Netbeans 8.0 (I can't speak for 7.4)..
You will need to use the Javadoc syntax:
/** @TODO something */
This isn't the most desirable workaround, but it is sufficient for me.
Upvotes: 2
Reputation: 7980
Following Deve's answer, in Netbeans 8 things changed a little bit.
In version 8, it is in Tools/Options/Team/Action Items
More info: https://www.youtube.com/watch?v=HsENrzwsiOw&hd=1
Upvotes: 17
Reputation: 732
Sorry, right now there is no way to separate highlighting for TODO. You can only change the highlighting for comments. But that's not what you want.
In NB 7.4 there is a new way to control tasks (especially bug tasks). You can connect NB with a bug tracking tool like Bugzilla or JIRA.
Look here for this new feature: http://wiki.netbeans.org/NewAndNoteworthyNB74#Tasks_window
Upvotes: 9