如何为java启用任务标签(TODO,...)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6469915/
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
How to enable Task tags (TODO,...) for java?
提问by Zepcome
I wanted to use // TODO
tags in order to have a Task list.
我想使用// TODO
标签来获得任务列表。
I'm using Eclipse Helios, I work on a Java project, and the view I openned is "Tasks", not "Task list". I've checked as well that there is no filter in the "Configure Contents" menu.
我正在使用 Eclipse Helios,我在处理一个 Java 项目,我打开的视图是“任务”,而不是“任务列表”。我也检查过“配置内容”菜单中没有过滤器。
But the only Tasks that are listed come from HTML, or JSP files, not my Java classes !
但是列出的唯一任务来自 HTML 或 JSP 文件,而不是我的 Java 类!
Any ideas ?
有任何想法吗 ?
PS: Sorry for my english, french people are definitively bad at languages !
PS:对不起我的英语,法国人绝对不擅长语言!
Edit: When I write a // TODO
task, the flag (the task icon) is well displayed in the left margin.
I've installed the following plugins : M2E, PMD, Subclipse, Google plugin, and the precise eclipse version name is Helios Service Release 2, if it can help.
编辑:当我编写// TODO
任务时,标志(任务图标)很好地显示在左边距中。我已经安装了以下插件:M2E、PMD、Subclipse、Google 插件,如果有帮助的话,准确的 Eclipse 版本名称是 Helios Service Release 2。
Final edit: Problem solved ! In fact a related project had build path problems. Using maven, i did not saw it ! All my apologies for such a newbie issue. Again, thanks for all those who've tried to help me !
最终编辑:问题解决了!事实上,一个相关的项目存在构建路径问题。使用 maven,我没有看到它!对于这样的新手问题,我深表歉意。再次感谢所有试图帮助我的人!
回答by Tonny Madsen
Have a look at the preference page Task Tags
. Is Enable searching for Task Tags
ticked?
查看首选项页面Task Tags
。被Enable searching for Task Tags
选中?
回答by Charlee Chitsuk
I've used the //TODO and perform building at least once. The task will be displayed at the task view.
我已经使用了 //TODO 并至少执行了一次构建。任务将显示在任务视图中。