저장시 사용하지 않는 import 자동 삭제

김은상·2022년 8월 27일
0

설정 방법

  1. 단축키 ctrl + shift + p 입력

  2. Preference: Configure Language Specific Settings 선택

  3. 설정 적용할 언어 선택(예 java, typescript, c..) -> settings.json파일 실행됨

  4. settings.json파일에 아래와 같이 등록(추가)

"[dart]": {
        "editor.codeActionsOnSave": {
            "source.organizeImports": true,
            "source.fixAll": true
        }
    }
   
"[typescript]": {
        "editor.codeActionsOnSave": {
            "source.organizeImports": true,
            "source.fixAll": true
        }
    }

"[c]": {
        "editor.codeActionsOnSave": {
            "source.organizeImports": true,
            "source.fixAll": true
        }
    }
profile
Flutter 시작

0개의 댓글