코딩/사소한 꿀팁
[vscode] 안 쓰는 import 자동 제거하는 방법
얌2
2023. 8. 14. 07:31
728x90
ctrl + shift + p (windows) / command + shift + p (mac)를 눌러
User Settings (JSON) 파일을 연다.
그리고 editor.codeActionsOnSave에 "source.removeUnusedImports": true를 추가해주면 끝이다!
// settings.json
{
...
"editor.codeActionsOnSave": {
...
"source.removeUnusedImports": true // ✨추가!
},
}
728x90