When I write .xml files in Eclipse, I often have to specify indented code manually. for example
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@color/background" android:layout_height="fill_parent" android:layout_width="fill_parent" />
After formatting, it looks like this.
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@color/background" android:layout_height="fill_parent" android:layout_width="fill_parent" />
How to automate this? I cannot find formatting settings in Eclipse for XML.
eclipse xml formatting
sandalone Dec 24 '10 at 17:11 2010-12-24 17:11
source share