Format XML - Aligning Values Vertically

Are there any plugins (or external applications) that will align XML vertically on values?

See this snippet of an ant file formatted by IDEA.

    <property name="build.compiler" value="modern"/>
    <property name="java.fork.memory" value="true"/>
    <property name="javac.fork.memory" value="true"/>
    <property name="javac.debug" value="true"/>



Ideally, what I would like is that it would be formatted like this

    <property name="build.compiler"    value="modern"/>
    <property name="java.fork.memory"  value="true"/>
    <property name="javac.fork.memory" value="true"/>
    <property name="javac.debug"       value="true"/>

2 comments

Hello,

It looks that the best way is submit corresponding ticket to IJ tracker because such facility is already implemented at formatter API (see IDEA-55147).

So, it just should be extended to XML.

Regards, Denis

0

Excellent!
http://youtrack.jetbrains.net/issue/IDEA-59092

In the meantime, can anyone recommend an external formatter?

0

Please sign in to leave a comment.