JSP formatter
Hello,
I don't quite like the way my JSPs are formatted by IDEA, and would like to
1. find out if there's any plugin out there to do a better formatting, or preferably
2. get an idea of how to create a plugin, that would connect to the "Reformat Code..." menu item, and do my custom formatting for the JSP.
Could you guys point me to the right documentation, or give me ideas on what i'd need to do for this?
Thanks,
Nilesh
Please sign in to leave a comment.
Have you played with JSP formatting options already?
What are the JSP formatting options you are referring to? Where can i find them? the only thing i know is the tab/indent part in the Global Code Style.
Thanks,
Nilesh
I think XML or HTML options affects JSP formatting as well. Can you express what aspects of existing formatting not fit your needs?
The JSP reformat is unusable for me in IDEA. I had posted about this a long time ago on the EAP thread (http://www.intellij.net/forums/thread.jspa?threadID=190614), and there has been slow progress on some fronts, but formatting is still horrible.
I just can't use the IDEA JSP formatter because it screws up the indenting too much, esp. where the are placed. I filed a bunch of bugs about this: IDEABKL-4691 JSP: Global Code Style Settings needs a JSP tab for JSP-specific constructs like <%! %> and <% %> blocks IDEABKL-4748 JSP - When copy&pasting a large block of code between jsp pages, it doesn't carry over the imports as it does with Java files IDEADEV-13314 JSP - Private field 'unused' false positive when included JSP fragments use the field. IDEABKL-4387 Exception occured when applying quickfix for NavigationFrame.jsp file IDEADEV-6433 JSP : The Java Indenter and Formatter are completely wrong when <% %> is enclosed by a