banan3'14
banan3'14

Reputation: 4996

IntelliJ format XML with a space before slash in a self-closing tag

Is there a way to add a space in self closing tags like <tag att='foo' /> only before the slash only in self closing tags in IntelliJ code style formatting settings? In Editor | Code Style | XML | Other there is only an option to add a space After tag name, but it also adds space to <component ></component >, which I don't want. I want <component></component> instead, but <component /> instead of <component/>.

Upvotes: 3

Views: 379

Answers (0)

Related Questions