Intellij idea indent on wrapper

My current formatting is intended too much when wrapping a string in an XML file. I get the following:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 

but i want it

 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 

I tried changing the continuation indent in Code Style -> General and in Code Style -> XML , but no one worked.

+4
source share
1 answer

You need to uncheck Align attributes in order to have continuation indents to work.

enter image description here

+8
source

Source: https://habr.com/ru/post/1480427/


All Articles