如何在 Eclipse 中启用 TODO/FIXME/XXX 任务标签? [英] How do I enable TODO/FIXME/XXX task tags in Eclipse?

查看:31
本文介绍了如何在 Eclipse 中启用 TODO/FIXME/XXX 任务标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我使用 Eclipse 的这些年里,直到现在我才知道 TODO/FIXME/XXX 注释标签应该出现在任务列表中.显然,这是默认禁用的,因为只要我一直在使用 Eclipse,我就一直在使用这些标签,而且我从未见过其中一个出现在任务列表中.谁能指出如何启用此功能?我在任何地方都看不到让我的源代码标签出现在任务列表中"的任何首选项选项.如果它存在,那将是一个很好的功能,但我开始怀疑了.

In all my years of using Eclipse, I never knew until now that TODO / FIXME / XXX comment tags are supposed to appear in the task list. Apparently this is something that is disabled by default because I have been using those tags for as long as I've been using Eclipse and I have never seen one of them appear in the task list. Can anyone indicate how to enable this feature? I see no preferences option anywhere that says anything to the effect of 'Let my source code tags appear in the task list'. It would be a nice feature if it existed, but I'm beginning to be doubtful.

我已经四处询问,也正如其他人向我建议的那样,这些是一些显然没有效果但我已经尝试过的东西:

I have asked around, and as others have suggested to me, these are some things which obviously have no effect but that I have tried anyway:

  • 正在升级到最新版本的 Eclipse.
  • 重新启动 Eclipse.
  • 关闭并重新打开任务列表.
  • 刷新项目.

我正在使用:
面向 Web 开发人员的 Eclipse Java EE IDE.
版本:Helios 服务版本 1
内部版本号:20100917-0705

I am using:
Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 1
Build id: 20100917-0705

推荐答案

对我来说,这些标签是默认启用的.您可以配置应在工作区选项中使用哪些任务标签:Java > Compiler > Task tags

For me, such tags are enabled by default. You can configure which task tags should be used in the workspace options: Java > Compiler > Task tags

检查它们是否在此位置启用,这足以让它们出现在任务列表(或标记视图)中.

Check if they are enabled in this location, and that should be enough to have them appear in the Task list (or the Markers view).

额外说明:如果您在同一个工作区工作,则大多数时候重新安装 Eclipse 不会改变任何东西.Eclipse 使用的大多数设置都存储在工作区文件夹中的 .metadata 文件夹中.

Extra note: reinstalling Eclipse won't change anything most of the time if you work on the same workspace. Most settings used by Eclipse are stored in the .metadata folder, in your workspace folder.

这篇关于如何在 Eclipse 中启用 TODO/FIXME/XXX 任务标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆