Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Add Eclipse TODOs to JSPs

Tags:

eclipse

jsp

todo

There is a way to add "TODO"s to Java classes so that they will show up in Eclipse's Tasks view.

//TODO: comment about what needs done

Does anyone know how to add a similar comment in a JSP so that it'll show up in the Tasks view in Eclipse? I've tried the obvious, but can't seem to make it show up.

<!-- TODO: this doesn't show up in the Tasks view in Eclipse -->
like image 852
Snowy Coder Girl Avatar asked Apr 14 '12 21:04

Snowy Coder Girl


2 Answers

Open the Preferences (Window->Preferences) and select General->Editors->Structured Text Edit->Task Tags.

From there you can mark the "Enable searching for Task Tags" setting. Please be sure JSP is active in the Filters tab.

Note: I'm using Eclipse Helios Service Release 2 (Build id: 20110301-1815). Preferences sections could change in different versions, you could always search for "task" in the preferences as Rob suggested.

like image 127
Giorgio Luparia Avatar answered Sep 22 '22 14:09

Giorgio Luparia


Look around Eclipse preferences - you can type "task" as a filter text - you should find options there to enable task tags for JSPs.

like image 21
Rob Avatar answered Sep 19 '22 14:09

Rob