안드로이드/Eclipse
Eclipse Code Style 적용
설.현.아빠
2012. 2. 3. 17:01
1.
Window -> Preferences ->
Java -> Code Style -> Formatter -> New… 으로 새로운
Formatter를 생성한다.
2.
새로 생성한
Formatter선택후
Edit 진입.
1)
Indentation탭에서 Tab
size : 4로 설정되어있는지 확인.
2)
Braces 탭에서 제일 아래
Array Initializer만
Same line으로 설정하고, 나머지 항목들은 모두 Next Line으로 설정.
3) Line Wrapping 탭에서 Maximum line width : 9999로 설정.
4) Comments 탭에서 중간쯤 Never join lines를 체크 하시고, 제일 아래 Maximum line width for comments : 9999로
설정하시고 재정렬하면 Comments가 안깨지고 정렬되네요.