apply google coding rule to android studio

9
pply Google's coding rules to Android stu Jongho Lim [email protected]

Upload: jongho-lim

Post on 13-Aug-2015

90 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Apply google coding rule to android studio

Apply Google's coding rules to Android studio

Jongho [email protected]

Page 2: Apply google coding rule to android studio

Android sttudio must have already been prepared

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

Page 3: Apply google coding rule to android studio

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

Click!

XML file Download

Page 4: Apply google coding rule to android studio

Ctrl + A or 모두 선택

and

Ctrl + C

Page 5: Apply google coding rule to android studio

open editor and Ctrl + V

%USER%\.AndroidStudio\config\codestyles

Save As

file name…Please it yourself

Save .xml file

Page 6: Apply google coding rule to android studio

open Android Studio

Apply Google Style

Page 7: Apply google coding rule to android studio

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

and OK click

Page 8: Apply google coding rule to android studio

come back to code

Finally, Ctrl + Alt + l

after code reformat

Page 9: Apply google coding rule to android studio

THANK YOU

Jongho [email protected]