본문 바로가기
웹개발 · IT 지식

[웹개발/문제해결] 파일 저장시 eslint 설정대로 코드 정리가 안될때 해결방법

by 메이플 🍁 2022. 6. 30.

1. setting.json 파일 열어주기

window에서는 Ctrl + Shift + P, Mac에서는 Cmd + Shift + P로 파일 검색창 열어준 후 setting.json 입력하면 해당 파일을 열어줄 수 있다.

 

2. setting.json에 아래의 코드를 넣어준다

  "editor.codeActionsOnSave": { "source.fixAll.eslint": true },
  "eslint.alwaysShowStatus": true,

댓글