问题
just started working with jsps and my pages look awful. Please suggest a way to have them indented.
thanks
回答1:
First make sure you have Web Tools installed, if not check this link: http://download.eclipse.org/webtools/updates/
Then right click in your code of your jsp page and click source then click format or press SHIFT+CTRL+F
回答2:
Take a look at the webtools plugin.
回答3:
Ctrl+I to indent the selected part (or all) of you code
来源:https://stackoverflow.com/questions/1231149/how-to-indent-jsp-pages-in-eclipse