Is there an "Optimize taglib declarations" plugin?

It would work similar to Optimize Imports for Java classes, except would
work in JSPs and would analyze a JSP and check if every <%@ taglib
uri="some.uri" prefix="foo" %> is actually needed - meaning somewhere in the
file is a tag that looks like "<foo:???>".

Error highlighting of unused taglib declarations, as well as intention for
removing usused ones should be supported.


3 comments
Comment actions Permalink

Vote for (and comment on):
http://www.jetbrains.net/jira/browse/IDEA-10650

Another nice idea is having Ctrl-Shift-F7 work on tag namespace prefixes,
to quickly see all usages of an imported taglib in the currrent JSP file.
Do you think this would be useful?

(At the moment Ctrl-Shift-F7 works in such a case, but only is "raw character"
mode)


0
Comment actions Permalink

Done!

"Taras Tielkes" <taras.tielkes@gmail.com> wrote in message
news:ecf5d46319a158c8f2448f559cb0@news.jetbrains.com...

Vote for (and comment on):
http://www.jetbrains.net/jira/browse/IDEA-10650

>

Another nice idea is having Ctrl-Shift-F7 work on tag namespace prefixes,
to quickly see all usages of an imported taglib in the currrent JSP file.
Do you think this would be useful?

>

(At the moment Ctrl-Shift-F7 works in such a case, but only is "raw
character" mode)

>



0
Comment actions Permalink

Hello Dan,

Done!

"Taras Tielkes" <taras.tielkes@gmail.com> wrote in message
news:ecf5d46319a158c8f2448f559cb0@news.jetbrains.com...

>> Vote for (and comment on):
>> http://www.jetbrains.net/jira/browse/IDEA-10650
>> Another nice idea is having Ctrl-Shift-F7 work on tag namespace
>> prefixes, to quickly see all usages of an imported taglib in the
>> currrent JSP file. Do you think this would be useful?

The issue for taglib usage highlighting is:
http://www.jetbrains.net/jira/browse/IDEA-10832


0

Please sign in to leave a comment.