Reputation: 7466
When I want to format my pom.xml the following happens:
From
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
To
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.10
</version>
<scope>
test
</scope>
</dependency>
I've tried to restore default settings wherever the XML Editor of Eclipse is involved, although I haven't changed anything knowingly. Any idea where to set this straight?
Upvotes: 1
Views: 543
Reputation: 29493
Go to Window > Preferences then select from the left navigation General > Editors > File Association, choose the file type .xml and in the window below select the XML editor and click on Default.
Upvotes: 2