The GUI designer for Android in Eclipse spits out this type of XML (into a layout):
<Button android:layout_height="wrap_content" android:id="@+id/btnSaveMessage" android:layout_width="wrap_content" android:layout_gravity="right" android:text="@string/text_save" android:width="125dp"></Button>
Is there a refactoring in Eclipse to turn this goo into pretty formatted XML like this:
<Button android:layout_height="wrap_content"
android:id="@+id/btnSaveMessage"
android:layout_width="wrap_content"
android:layout_gravity="right"
android:text="@string/text_save"
android:width="125dp"/>
Press ctrl + shift + F
or
Press ctrl + I