LayoutFormatter

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion Gogland DataGrip Rider Android Studio
26.09.2016
6 067
Retrofit your Android layout XML files.

It will adjust your attributes order in accordance with the rules, and it will adjust some attributes to the front, and take some attributes at the end of the rows. It will make your code format more nice.

It is open source. https://github.com/drakeet/LayoutFormatter
Related articles: 当我们谈 XML 布局文件代码的优雅性

Download plugin

Recent change notes

v1.1.5
- Removed a rule: android:singleLine="true"(It's deprecated) -> android:maxLines="1"(It's DEPRECATED, too!);

General usage instructions

Retrofit your Android layout XML files. It will adjust your attributes order in accordance with the rules, and it will adjust some attributes to the front, and take some attributes at the end of the rows. It will make your code format more nice. It is open source: https://github.com/drakeet/LayoutFormatter