如何在 Eclipse 中为 Java 项目启用任务列表?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6019778/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:18:36  来源:igfitidea点击:

How can I enable the Task List in Eclipse for a Java Project?

javaeclipse

提问by retrodrone

My TODO tasks are not showing up automatically in Eclipse. I'm using Eclipse Helios Service Release 2.

我的 TODO 任务没有在 Eclipse 中自动显示。我正在使用 Eclipse Helios Service Release 2。

I have a standard Java project. Eclipse detects my // TODO and /* TODO */ tasks, because it displays the task icon to the left of the correct source code line. But the Task List pane is empty. The filter is empty, and I have it set to show All.

我有一个标准的 Java 项目。Eclipse 检测到我的 // TODO 和 /* TODO */ 任务,因为它在正确的源代码行左侧显示任务图标。但任务列表窗格是空的。过滤器是空的,我将它设置为显示全部。

I also double-checked Window - Preferences - Java - Task List to make sure it was enabled.

我还仔细检查了 Window - Preferences - Java - Task List 以确保它已启用。

Any clue how to make the Task List work?

任何线索如何使任务列表工作?

回答by FrVaBe

You have to open the Tasksview (Window -> Show View -> (Other... -> General ->) Tasks) and not the Task Listview (differences are explained here).

您必须打开“任务”视图 ( Window -> Show View -> (Other... -> General ->) Tasks) 而不是“任务列表”视图(此处解释差异)。