How to Add Eclipse TODOs to JSPs

若如初见. 提交于 2019-12-03 16:29:26

问题


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 -->

回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/10157501/how-to-add-eclipse-todos-to-jsps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!