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

271 views Asked by At

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/>.

0

There are 0 answers