Nest.js / / 2023. 6. 12. 17:04

Prettier 설정

반응형

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
  • 네이버 블로그 공유
  • 네이버 밴드 공유
  • 페이스북 공유
  • 카카오스토리 공유