如何使自定义任务标签在Eclipse中工作? [英] How to get custom task tags to work in Eclipse?

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

问题描述

尝试了很多次,但我无法弄清楚如何在任务中定义自定义标签。我使用对话框,创建了不同的东西,如TODO2或V2或TOVO(仅用于测试)...但是没有一个将扫描任务,即使我做的事情,如// TODO2或/ / V2或// TOVO在源代码中。



我也尝试重新启动eclipse,但没有帮助?



<任何人有任何想法如何正确使用此功能?



我想制作一个标签,我可以用于未来版本的TODO ...像我的程序V2 。



现在我只是像这样//这个TODO FUTURE blah ...这样我就可以很快看到我现在忽略了读这个任务(因为我只在v1开发中)

解决方案

你用什么对话框来添加任务标签?您应该进入Windows - >首选项和下一个Java - >编译器 - >任务标签。在此对话框中,您可以添加任务标签。确保您的项目正在使用全局任务标签(否则您必须在项目属性对话框中添加特定于项目的任务标签)。



关闭首选项对话框Eclipse应重新编译项目,任务视图将显示新的标签。


tried this many times but I just can't figure out how to define custom tags in Tasks. I used the dialog and created different things like "TODO2" , or "V2" or "TOVO" (just for testing)... but none of these will ever scan into tasks, even though I do things like //TODO2 or //V2 or //TOVO in source code.

I also tried restarting eclipse but that didn't help?

anyone have any ideas how to use this functionality properly?

I want to make a tag I can use for future version TODOs... like for V2 of my program.

Right now I'm just hacking it like this //TODO FUTURE blah ... so that I can quickly see that I should ignore reading this task for now (since I'm only on v1 development)

解决方案

What dialog did you use to add task tags ? You should go in "Windows -> Preferences", and next "Java -> Compiler -> Task tags". In this dialog you can add task tags. Make sure that your project is using the global task tags (otherwise you must add task tags specific to your project in the project properties dialog).

When you close the preference dialog, Eclipse should recompile your project, and the task view will show the new tags.

这篇关于如何使自定义任务标签在Eclipse中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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