I know two ways to create tasks using Eclipse; with the tasks view or with the TODO
annotation in a comment:
//TODO: wtf? Rewrite it using 开发者_运维技巧constants.
int foo = 3.1 * 3;
If I use the first way, I can edit tasks and set the "priority".
Can I do it for tasks that I create using TODO
annotation?
I know that with FIXME
priority is set to High, while with TODO
is set to Normal.
This is configurable too: inside Window > Properties search for "Task tags".
Go to File > Properties > Task Tags
By default TODO = normal priority
FIXME = high priority
You can specify new priority labels and give them normal, low, or high priorities. (you might need to click on 'enable project specific settings').
Go to Window > Preferences > Java > Task
Tags and make XXX as a high priority alias of FIXME
. These high priority tags are used for items that should be looked at before the next release while the normal TODO
tags are used to mark items that aren't critical.
Source: http://www.newt.com/java/eclipse/
精彩评论