XML attributes order in Android Studio

前端 未结 6 1693
小蘑菇
小蘑菇 2020-12-12 11:30

I\'m facing problem with keeping proper order of XML attributes in Android Studio. As you can see below, the style attribute is between layout_* at

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 12:05

    To delete empty lines between them:

    Preferences > Code Style > XML > Other > Keep blank lines: 0

    And then just reformat your XML files.

提交回复
热议问题