How to indent jsp pages in eclipse

2019-07-01 23:26发布

问题:

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