Eclipse HTML formatter tips

Eclipse has decent HTML editor included with WTP.

When editing HTML files, for example PhoneGap project, then hitting CTRL+SHIFT+F formats code nice an neat. Unfortunately sometimes formatting rules are lot exactly what we want. HTML form contains several label and input elements and all of these are considered as one long line.

Open Window>Preferences>Web>HMTL Files>Editor and you will find list of HTML keywords in textbox called “Inline Elements:”. Remove input and label from this list and all of these statements will be each on separate lines.

You can modify more formatter settings there. Line wrapping width is reasonable to be increased with nowadays widescreen monitors.


4 thoughts on “Eclipse HTML formatter tips

Leave a Reply

Your email address will not be published.


*