IntelliJ: Spacig of caret when writing XML (Spring Beans)
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?
- Enter File -> Settings (or hit Ctrl + Alt + S)
- Browse to Code style -> XML
- Click on Other tab. Uncheck Align attributes checkbox