반응형
1. .prettierrc 설정
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 140,
"tabWidth": 4
}
2. File > Preferences > Settings > Search for "default formatter"
Make sure your Editor: Default Formatter field is not null but rather Prettier - Code formatter (esbenp.prettier-vscode) and that all the languages below are ticked. This fixed my issue.
STEP BY STEP WALKTHROUGH

Also make sure that your format on save is enabled:

3. VSCode 재실행
반응형
'Nest.js' 카테고리의 다른 글
nodejs package.json의 모듈 업데이트 (0) | 2023.07.20 |
---|---|
VSCode 에서 F5 Nest.js 실행하기 (0) | 2023.06.12 |
web3 cannot read properties of undefined (0) | 2023.06.12 |
NPM(Node Package Manager)이란? (0) | 2023.06.12 |
Nest.js 설치 및 실행 (0) | 2023.06.12 |