Did anyone create the Java Code Formatter Profile for Eclipse IDE that conforms to the Android Code Style Rules?

后端 未结 5 2076
轮回少年
轮回少年 2021-01-30 04:53

Android Code Style Guide defines \"Android Code Style Rules\".
To conform to these rules one have to change quite a number of settings of the Java Code Formatter (Window->Pr

5条回答
  •  萌比男神i
    2021-01-30 05:19

    Sync the source code according to these instructions. The formatting guidelines are in the file development/ide/eclipse/android-formatting.xml. You can import it with Eclipse.

    Menu bar -> Window -> Preferences -> Java -> Code Style -> Formatter -> Import

    Point it to the path of the android-formatting.xml

提交回复
热议问题