I'm using Android Studio, and layout xml indentation is auto-formatting in somewhat wrong way for me.
Instead of
<!-- case1: miss-diffs on git -->
<SomeXML
attr1="hello" >
</SomeXML>
or
<!-- case2: wrong end(?) indentation level -->
<SomeXML
attr1="world"
>
</SomeXML>
I'd like to format my xml as
<SomeXML
attr1="hello"
>
</SomeXML>
so that my git diff won't show any miss-diffs from case1, and without wrong indentation level (case2) to confuse myself.
Are there any options in intellij for this? Thanks in advance : )
Go to File -> Settings -> Editor -> Code Style -> XML
Change the Scheme there to Default. Normally it doesn't restrict on what you are trying to do, unnless there is any defined settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With