如何将Eclipse TODO添加到JSP [英] How to Add Eclipse TODOs to JSPs

查看:896
本文介绍了如何将Eclipse TODO添加到JSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种方法可以将TODO添加到Java类中,以便它们将显示在Eclipse的任务视图中。

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

有没有人知道如何在JSP中添加类似的注释,以便它将显示在Eclipse中的任务视图中?我已经尝试了这个明显的,但似乎不能让它出现。

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


推荐答案

打开首选项(Window-> Preferences)通用 - >编辑器 - >结构化文本编辑 - >任务标签。

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

从那里可以标记启用搜索任务标签设置。请确保JSP在筛选器选项卡中处于活动状态。

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

注意:我使用的是Eclipse Helios Service Release 2(Build id:20110301-1815)。首选项部分可能会以不同的版本更改,您可以随时在Rob建议的首选项中搜索任务。

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.

这篇关于如何将Eclipse TODO添加到JSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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