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

查看:143
本文介绍了如何在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。

  • 关闭并重新打开任务列表。

  • 刷新项目。

  • Upgrading to the latest version of Eclipse.
  • Restarting Eclipse.
  • Closing and re-opening the task list.
  • Refreshing the project.

我正在使用:

适用于Web开发人员的Eclipse Java EE IDE。

版本:Helios Service Release 1

构建ID:20100917-0705

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

推荐答案

对于我来说,这样的标签默认启用。您可以在工作区选项中配置哪些任务标签: Java>编译器>任务标签

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天全站免登陆