ycomp
ycomp

Reputation: 8573

How to get custom task tags to work in 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)

Upvotes: 12

Views: 10767

Answers (2)

HungNM2
HungNM2

Reputation: 3425

add new task tags for java: Windows -> Preferences

enter image description here

enter image description here

Upvotes: 1

Baldrick
Baldrick

Reputation: 24340

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.

Upvotes: 33

Related Questions