Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to align XML code in Android Studio?

is there any feature in Android Studio to align all XML attributes by '=' sign. I am unable to find any setting that would allow this.

un-aligned aligned
Just another code format fanatic who likes code readability.

like image 962
Daksharma Avatar asked Nov 02 '25 12:11

Daksharma


1 Answers

below code will align everything but not after = sign. for better answer here

Win/Linux:

Ctrl + Alt + L

Mac:

Option + Command + L

like image 68
Milon Avatar answered Nov 04 '25 01:11

Milon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!