Skip to content

Importing Android Code Style in Android Studio

Rajan Maurya edited this page Apr 29, 2017 · 3 revisions

We are following standard Android Code Style guidelines

Here are steps to import the guidelines in the android studio.

  • Copy the AndroidStype.xml

  • For Mac Users 👍 Save it to ~/Library/Preferences/AndroidStudioBeta/codestyles.

    Hidden files and folders will need to be visible to do this. To make hidden files and folders visible, follow the steps here: http://www.mikesel.info/show-hidden-files-mac-os-x-10-7-lion/

  • For Ubuntu Users 👍 Save it to /home/{username}/.AndroidStudio2.0/config/codestyles/AndroidStyle.‌xml.

  • For Windows Users 👍 Save it to C:\Users{username}.AndroidStudiox.x\config\codestyles

  • Restart Android Studio

  • Navigate to Android Studio > Preferences

  • Navigate to Code Style > Java

  • From the Scheme drop-down, select the name of the imported AndroidStyle code style

  • Click OK

Note : for more https://androidbycode.wordpress.com/2015/02/14/applying-the-aosp-coding-style-in-android-studio/

Clone this wiki locally