로토의 블로그

vscode에서 tabSize 변경하기

vscode의 기본 tab size는 4로 되어있다.

맥의 경우 command + ,를, 윈도우즈의 경우 ctrl + , 키를 누른 뒤 우측 사용자 설정에 아래의 json을 입력한다.

{
    "editor.tabSize": 2,
    "editor.insertSpaces": true,
    "editor.detectIndentation": false
}