뚜sh뚜sh

[VSCode] Code Formatter 적용 안될 때 본문

Visual Studio Code

[VSCode] Code Formatter 적용 안될 때

뚜sh뚜sh 2023. 4. 5. 23:19

1. Settings 안에서 Editor: Format On Save가 체크되어 있는 지 확인

2. Editor: Default Formatter가 prettier로 설정되어 있는 지 확인

3. 최상위 폴더에 .prettierrc 파일을 생성한 뒤 아래코드 붙이기

{

    "singleQuote": true,

    "printWidth": 100,

    "tabWidth": 2,

    "useTabs": false,

    "semi": true,

    "quoteProps": "as-needed",

    "jsxSingleQuote": false,

    "trailingComma": "es5",

    "arrowParens": "always",

    "endOfLine": "lf",

    "bracketSpacing": true,

    "jsxBracketSameLine": false,

    "requirePragma": false,

    "insertPragma": false,

    "proseWrap": "preserve",

    "vueIndentScriptAndStyle": false

  }

'Visual Studio Code' 카테고리의 다른 글

[VSCode] Mac에서 한글이 씹힐 때 해결방법  (0) 2023.03.17
Comments