Code
VS Code 포매터 지정 방법
codens
2021. 4. 13. 18:43
- 기본 Formatter 지정 방법
* 메뉴로 설정
문서에서 우클릭 -> Format Document With (Ctrl+Alt+F)
-> Configure Default Formatter -> 포매터 선택
//---------------
* settings.json 파일 수정으로 설정
// html 기본 포매터를 VS Code 내장 기능으로 설정
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
// 라라벨 블레이드
"[blade]": {
"editor.defaultFormatter": "onecentlin.laravel-blade"
}
// json
"[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features" },
"json.format.keepLines": true, // 줄바꿈 형식 유지
//css
"[css]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
"css.format.newlineBetweenSelectors": false, // 선택자 사이에 줄바꿈하지 않음, prettier, beautify에서 지원하지 않는 기능
반응형