Eclipse XML Formatter Inserts Unnecessary Line Breaks

Eclipse Version: Indigo Service Release 2

I cannot get my XML formatter to do the job right.

When I apply formatter to this

<execution> <id>compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> 

i get it

 <execution> <id> compile </id> <phase> compile </phase> <goals> <goal> compile </goal> </goals> </execution> 

I want it to be formatted as follows:

 <execution> <id>compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> 

I tried different options in XML -> XML Files -> Editor , but no one works.
Thanks.

+3
eclipse xml formatter
source share
1 answer

The problem was in the Android editor, it was the default XML editor for me.

Two solutions to this problem:

  • Use the XML editor Eclipse Open With -> XML Editor
  • Disable "Android Standard Style for Android" in Android -> Editors
+3
source share

All Articles