IntelliJ IDEA code style settings for Java and Android projects.
- Copy the Java.xml and Android.xml files to your IntelliJ/Android Studio Config directory. Typically this is your Home directory followed by \AndroidStudio\config\codestyles. An example directory would be: C:\Users\David.AndroidStudioPreview\config\codestyles
- Restart IntelliJ if it's running.
- Open IntelliJ Project Settings -> Code Styles, change the code style for the project to the one you want.