Apply google coding rule to android studio

Post on 13-Aug-2015

87 views 0 download

Transcript of Apply google coding rule to android studio

Apply Google's coding rules to Android studio

Jongho Limsloth@kookmin.ac.kr

Android sttudio must have already been prepared

우선 , 안드로이드 스튜디오는 미리 설치되어 있어야 됩니다

http://code.google.com/p/google-styleguide/source/browse/trunk/intellij-java-google-style.xml

Click!

XML file Download

Ctrl + A or 모두 선택

and

Ctrl + C

open editor and Ctrl + V

%USER%\.AndroidStudio\config\codestyles

Save As

file name…Please it yourself

Save .xml file

open Android Studio

Apply Google Style

File -> Settings Code Style -> Scheme -> GoogleStyle click

and OK click

come back to code

Finally, Ctrl + Alt + l

after code reformat

THANK YOU

Jongho Limsloth@kookmin.ac.kr