原文 [http://softwaredevgeek.blogspot.jp/2013/11/setting-up-android-checkstyle-in.html][1]
-
拷贝文件
https://github.com/android/platform_development/blob/master/ide/intellij/codestyles/AndroidStyle.xml -
创建并粘贴
~/.AndroidStudioPreview/config/codestyles/ (in Ubuntu)
或
~/Library/Preferences/AndroidStudioPreview/codestyles (in Mac OS X) -
在Settings (or Preferences in Mac OS X) > Code Style > Java, 选择 AndroidStyle, 同时 Code Style > XML , 选择 AndroidStyle.
-
菜单中选择 Analyze > Code.