Eclipse 中的任务优先级
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4451702/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Task priorities in Eclipse
提问by Stan Kurilin
I know two ways to create tasks using Eclipse; with the tasks view or with the TODO
annotation in a comment:
我知道两种使用 Eclipse 创建任务的方法;使用任务视图或TODO
注释中的注释:
//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?
我可以为使用TODO
注释创建的任务执行此操作吗?
回答by bluish
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".
我知道FIXME
优先级设置为高,而TODO
设置为正常。这也是可配置的:在“窗口”>“属性”中搜索“任务标签”。
回答by zmf
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').
您可以指定新的优先级标签并赋予它们正常、低或高优先级。(您可能需要单击“启用项目特定设置”)。
回答by Tarik
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.
转到Window > Preferences > Java > Task
标签并将 XXX 设为FIXME
. 这些高优先级标签用于在下一个版本之前应该查看的项目,而普通TODO
标签用于标记不重要的项目。