I would like to change the way Eclipse formats XML files. For example, if I have in pom.xml file a section as follows:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
After ctrl+shift+f it will look like:
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
3.8.1
</version>
<scope>
test
</scope>
</dependency>
I prefer the first version, so how to configure Eclipse to format XML files to look like that?