Unused and unorganized imports are a headache for any project. It uses unnecessary spacememory, and increases LOC.

Here´s a shortcut to fix these issues: ( we gonna Fix them on just SAVING the file )

  1. Open (Visual Studio Code) settings JSON
  2. 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.

By Shabazz

Software Engineer, MCSD, Web developer & Angular specialist

Leave a Reply

Your email address will not be published. Required fields are marked *