I found out how to change the color of the todo tag in eclipse (window->preferences->general->editors->text editors->annotations->tasks) but this changes it so that when I write //TODO the entire line is affected. Is it possible so make it so that ONLY the word TODO is afected?
ctrl-shift-F9 was just a random example, to make you realize that any shortcut would ba as long to type as // TODO.
Programmers like to place TODO markers in their code which serves as a reminder for tasks that need to be completed. Comments in the Java code that has the word TODO in them are recognized as task and shown on the marker bar and in the Tasks view.
Is it possible so make it so that ONLY the word TODO is afected?
Yes, you can change the color of "task tag" comments under Preferences → Java → Editor → Syntax Coloring ⇉ Comments → Task Tags, as shown in the screenshot below. Note that "TASK" in the preview window is hot pink. "TODO" is a task tag, so it also appears hot pink for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With