Replies: 1 comment 4 replies
-
I think this could be better documented, at least on the ruff website itself. After clicking through a few links, I got to the ruff-vscode README, which might have what you're looking for. The Settings section in particular has this snippet for {
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "charliermarsh.ruff"
}
} I hope this helps! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is probably very basic, but I find no guidance in the docs, I suspect because it's supposed to be obvious... ;/ As far as I see the docs cover using Ruff as a package, but if I understood correctly, I shouldn't need to install the package additionally if I'm using the VS extension right?
I've installed the VS code extension, and I think it's functioning - I see ruff suggestions for underlined code. BUT none of the automated functionalities - code formatting or import sorting are happening. Ruff is enabled in VS code settings, organise imports as well. Is there something else I need to enable? I'm used to black where it would just format everything on save, or when running cells if in a notebook, which is not what I'm getting at the moment.
Beta Was this translation helpful? Give feedback.
All reactions