Remove unused imports on autosave - Vs Code
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
Just add the following to your VS Code settings.json:
...
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true,
"source.sortMembers": true
}