How to change Eclipse default format policy?

For HTML, JSP or other similar web pages, the Eclipse default format policy may not satisfy you. For me, I'd like one tag one line. To change the default policy, you should open the preference window from menu 'Window': window-->preference-->Web-->HTML files-->Editor, then find the 'Inline Elements' in the right list, and remove all of them. Apply your change, then return back to your opened web page editor, CTRL+F...

你可能感兴趣的:(eclipse,format)