Unused and unorganized imports are a headache for any project. It uses unnecessary space, memory, and increases LOC.
Here´s a shortcut to fix these issues: ( we gonna Fix them on just SAVING the file )
- Open (Visual Studio Code) settings JSON
- Add this below code in settings.json file.
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
Now just save it and its done ?. Go to any messed up file and just save it.