vscode 프로젝트 탭을 눌렀을 때 스페이스 2칸으로 변경 방법 (EditorConfig 확장 설치)
vscode프로젝트에서 Tab을 눌렀을 때 Space 2칸으로 변경하는 방법이다.
1. EditorConfig 확장 설치
vscode 좌측바에서 Extensions 탭 클릭 - [EditorConfig] 검색 - [EditorConfig for VS CODE] 설치
2. 프로젝트 루트 하위에 .editorconfig 파일 생성
ex) 프로젝트 구조
my-react-app/ <= 프로젝트 루트
├── node_modules/
├── public/
├── src/
├── package.json
├── vite.config.ts
└── .editorconfig <= 파일 생성
├── node_modules/
├── public/
├── src/
├── package.json
├── vite.config.ts
└── .editorconfig <= 파일 생성
3. .editorconfig 파일내용 작성
# .editorconfig
root = true
[*]
indent_style = space
indent_size = 2
root = true
[*]
indent_style = space
indent_size = 2