Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>flutter-unused-import-cleanerNew to Visual Studio Code? Get it now.
flutter-unused-import-cleaner

flutter-unused-import-cleaner

Mahendran G

|
6 installs
| (0) | Free
Removes unused imports from Dart files in Flutter projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flutter Unused Import Cleaner

🚀 A simple VS Code extension to automatically remove unused imports in your Flutter/Dart files using the dart fix command.

🧠 Features

  • One-click command: Remove Flutter Unused Imports
  • Runs dart fix --apply on the current file
  • Works with .dart files in Flutter projects
  • Lightweight & fast

📦 How to Use

  1. Open any .dart file in VS Code.
  2. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) to open the command palette.
  3. Search for: Remove Flutter Unused Imports
  4. Hit Enter — and done ✅

🛠️ Behind the scenes, it runs:

dart fix --apply your_file.dart

💻 Requirements

  • Flutter SDK installed
  • Dart CLI available in PATH
  • A Flutter project open in VS Code

⚠️ Known Issues

  • Currently only works on saved .dart files.
  • Does not support multi-file project-wide cleanup yet.

🙌 Contributing

Pull requests are welcome!
Ideas for improvement? Feel free to open an issue.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft