Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij idea indent on wrap

My current formatting makes too much intend when wrapping line in XML file. I get this:

<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 this

<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 continuation indent in Code Style -> General and in Code Style -> XML but none worked.

like image 778
Adam Pierzchała Avatar asked Feb 17 '23 13:02

Adam Pierzchała


1 Answers

You have to un-tick the Align attributes in order to have continuation indentation to work.

enter image description here

like image 78
maba Avatar answered Apr 25 '23 08:04

maba