title: Android Code Style in Intellij Idea / Android Studio
body: <p>Before Android Studio, I was using <a href="https://raw.github.com/android/platform_development/master/ide/eclipse/android-formatting.xml">android-formatting.xml</a> as Code Style in Eclipse.</p>
  
  <p>How can I setup Android Studio / Intellij Idea to format code as in Eclipse?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I tried Eclipse Code Formatter plugin. It seems to work, but you cannot edit any setting at all. My team prefers 120 columns instead of 100.</p>
  
  <p>I tried @CrossleSong answer too. It's a bit tricky, but more powerful. You can save this </p>
  
  <p><a href="https://android.googlesource.com/platform/development/+/android-4.2.2_r1.2/ide/intellij/codestyles/AndroidStyle.xml">https://android.googlesource.com/platform/development/+/android-4.2.2_r1.2/ide/intellij/codestyles/AndroidStyle.xml</a></p>
  
  <p>as <em>Android.xml</em> and copy it to AndroidStudio/Intellij codestyles folder: for me is </p>
  
  <p><code>~/Library/Preferences/AndroidStudioPreview/codestyles</code></p>
  
  <p>Now you can select Android as Code Style in Android Studio Preferences.</p>