How to align XML code in Android Studio?

时光怂恿深爱的人放手 提交于 2019-12-04 01:43:02

问题


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.


Just another code format fanatic who likes code readability.

回答1:


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

Win/Linux:

Ctrl + Alt + L

Mac:

Option + Command + L




回答2:


Try like this

Settings - Editor - XML



来源:https://stackoverflow.com/questions/28245890/how-to-align-xml-code-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!