kbrose / vsc-python-indent

Correctly indent python code on the fly, in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=KevinRose.vsc-python-indent
MIT License
82 stars 19 forks source link

There is no formatter for 'python' files installed #121

Closed eodeluga closed 3 weeks ago

eodeluga commented 4 months ago

image

Have tried this VSCode settings config

"[python]": {
      "editor.defaultFormatter": "KevinRose.vsc-python-indent",
      "diffEditor.ignoreTrimWhitespace": false,
      "gitlens.codeLens.symbolScopes": [
        "!Module"
      ],
      "editor.formatOnType": true,
      "editor.wordBasedSuggestions": "off"
    }
lishaduck commented 1 month ago

This extension isn't a formatter. Install Ruff and set it charliermarsh.ruff (or black, if you prefer) instead.

kbrose commented 3 weeks ago

Yes, what @lishaduck said. This extension is not a formatter.