EditorConfig

murkgom·2022년 6월 21일
0

.editorconfig

개인 editor 설정과 관계없이 프로젝트 기반의 공통된 rule을 강제할 수 있는 방법

Editor별 지원 여부

[플러그인 없이 기본 지원하는 editor]

  • intelliJ
  • Visual Studio
  • GitHub
    ...

[플러그인이 필요한 editor]

  • eclipse
  • vscode
  • notepad++
    ...

더보기

spring-petclinic 프로젝트의 .editorconfig 내용

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space

[*.{java,xml}]
indent_size = 4
trim_trailing_whitespace = true
indent_style = tab
tab_width = 4

[{pom,wro}.xml]
indent_size = 2
indent_style = space

[*.{html,sql,less}]
indent_size = 2

0개의 댓글