Skip to main content

Remove Unused Imports From Your Code

· One min read
Shafi Rayhan

Removing unused imports from your code can help you reduce the bundle size of your application and make your code clutter free.

Here's how to do it in VS Code:

"editor.codeActionsOnSave": {  
"source.organizeImports": true
}

Add these lines of code in your VS Codes settings.json file.

You can access the settings.json file by pressing CTRL + , at the same time.