Autoremove unused python imports

I can’t seem to find this functionality in cursor. Can someone point it out to me? In vanilla vscode you can do this:

"python.analysis.fixAll": [
    "source.unusedImports"
  ],

We don’t currently support this feature in our Python extension. Instead, I would recommend using Ruff to auto-format. They have an unused import rule.

1 Like