"[python]": {
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true
}
I use Ruff
and those are the settings for python files. For me the editor.codeActionsOnSave
did the trick.