Cleaning up unused imports in Python with autoflake using a VS Code task

python, vs code, autoflake, task, import

Add the following script to tasks.json

vsconfig="$HOME/Library/Application Support/Code/User"
open $vsconfig/tasks.json

Trigger the cleanup process with a shortcut like $⇧⌥P$ in keybindings.json

MindEase Theme

Automatically run on save from settings.json

Last updated

Was this helpful?