Search code examples
xmleclipsemacosformat

Eclipse XML format on MacOS is disabled


How can I format XML files using:

  • CMD + SHIFT + F
  • Source -> Format?

It seems that it is disabled.

enter image description here


Solution

  • My pom.xml was opened with "Maven Pom Editor"

    To change it you need to go on:

    Window > Preferences > General > Editors > File Associations

    and you need to chang pom.xml associated editor.

    enter image description here