Untitled

[IntelliJ] Google Coding Convention Set-Up

(intellij-java-google-checkstyle.xml , intellij-java-google-formatter.xml)

  1. File > Settings ( Ctrl + Alt + s ) 에서 “CheckStyle-IDEA” Plugin 설치 후 IDEA restart

Untitled

  1. File > Settings > Tools > CheckStyle 에서 “Treat Checkstyle error as warnings” 체크
  2. Configuration Files 아래 “+” 버튼 → Use a local Checkstyle file로 intellij-java-google-checkstyle.xml 파일 추가 후 apply

Untitled

  1. File > Settings >Editors > Code Style > Java 이동
  2. Scheme 옆 톱니바퀴 버튼 > Import Scheme > IntelliJ IDEA code style XML
  3. intellij-java-google-formatter.xml 파일 추가 후 apply