Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Autoflake - Remove unused Python importsNew to Visual Studio Code? Get it now.
Autoflake - Remove unused Python imports

Autoflake - Remove unused Python imports

Trung Ngo

|
16,853 installs
| (3) | Free
Remove unused and re-organize imports in Python
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Autoflake README

Project link

Introduction

autoflake removes unused imports and unused variables from Python code. It makes use of pyflakes to do this.

By default, autoflake only removes unused imports for modules that are part of the standard library. (Other modules may have side effects that make them unsafe to remove automatically.) Removal of unused variables is also disabled by default.

autoflake also removes useless pass statements.

Usage

Usage

License

MIT License

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