Skip to content

[DX] 개발환경에 .editorconfig 세팅이 필요함 #25

Description

@malkoG

VSCode, Vim 어떤 에디터를 쓰던간에 들여쓰기를 할 때 space를 집어넣을지 혹은 탭 문자(\t)를 사용하는지 개인별로 편차가 있습니다.
prettier로 공백의 수를 강제하는 편이긴 하지만, 개인의 환경설정이라는 변수 때문에 개발하는데 있어서 불편함을 겪을 가능성이 충분히 있습니다. (저도 현재 겪고 있습니다.)

editorconfig 를 이용하면 각 파일을 열때마다 확장자에 따라 탭을 space 2개로 치환할 지,
혹은 indent 단위를 space 2개로 할 지 4개로 할 지 선언할 수 있습니다.

VSCode는 별도로 editorconfig 플러그인 설치가 필요하지만,
Neovim은 0.9 버전부터 editorconfig 기본으로 탑재됩니다.
Neovim 기준으로는 별도의 디펜던시가 필요하지 않기 때문에, Good To Have로 editorconfig 세팅하는 것이 좋을 것 같습니다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    config설정관련

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions