title: Format XML code in Eclipse
body: <p>When I write .xml files in Eclipse, I often have to manually indent code. For example</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:background="@color/background"
  android:layout_height="fill_parent"
  android:layout_width="fill_parent" /&gt;
  </code></pre>
  
  <p>After formatting it looks like this.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;LinearLayout   
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:background="@color/background"
        android:layout_height="fill_parent"   
        android:layout_width="fill_parent" /&gt;
  </code></pre>
  
  <p>How to automate this? I can't find formatting settings in Eclipse for XML.</p>