When I am writing for example Spring Bean I often have empty element without children only with attributes.
Default way that IDEA provides spacing is the first one on the picture (with arrow), which I dont like. I prefer the second one, which can I only alter manually. How can I set up IDEA to do so automatically?

1 Answer