I use code formatting command (Ctrl + Shift + F) a lot in Eclipse IDE. While this works pretty well for Java / CSS source codes, the JSP formatting is just sucks.
Is there any plug-in available to make the JSP formatting better in Eclipse IDE? By formatting I mean proper indenting of JSP/HTML tags.
Go to Source | Format Document or press Ctrl+Shift+F.
Preferences -> Jsp -> Editor -> HTML Editor -> Indent using tabs. All lines start from column 1 after doing source-> format! automatically too.
Eclipse Enterprise Java and Web Developer Tools Enables Enterprise Java Bean, Java Enterprise Application, Fragments, and Connector, Java Web Application, JavaServer Faces (JSF), Java Server Pages (JSP), Java Servlet, Java Web Services, and Tag ...
You can use Ctrl + A to select the entire file, then use this shortcut to quickly fix all the indentation. You can also change how Eclipse handles indentation by going to Window > Preferences, then in the left panel, navigate to Java > Code Style > Formatter > Edit... > Indentation.
A quick search with Google turns up this part of MyEclipse Enterprise Workbench.
But a quick, if obvious, question: do you have the J2EE tools installed?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With