Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best free plugin for Eclipse that allows for formatting/indenting/cleanup of JSP code? [closed]

I know that IntelliJ has an option to select all the code in a JSP file, right click, and select "format". This nicely formats all HTML, CSS, scriptlets and JSTL tags in a JSP file.

Can Eclipse do this?

If not, what is the best free Eclipse plugin that does the same?

like image 862
Christopher Tokar Avatar asked Oct 27 '08 12:10

Christopher Tokar


3 Answers

With the Web Tool Plateform plateform (on eclipse.org website), this is very simple : in the JSP editor tab, right click->source->format (or Shift+Ctrl+F)

like image 132
Vinze Avatar answered Nov 16 '22 00:11

Vinze


I use the EclipseHTMLEditor from Project Amateras. Be sure to set "Amateras JSP Editor" as default editor for file type "*.jsp" in Window > Preferences > General > Editors > File Associations.

UPDATE: As of today, March 27th 2015, Project Amateras seems stale. However latest releases of WTP are much improved and surely worth a try. Thanks to @Vogel612 for the info.

like image 26
Marcello Nuccio Avatar answered Nov 16 '22 00:11

Marcello Nuccio


I found this one on eclipse plugin central.

Looks like an all in one kind of formatter. I haven't tried it myself but it might be what you are looking for

NXFormat

like image 45
branchgabriel Avatar answered Nov 16 '22 01:11

branchgabriel