🧑‍💻 Update VSCode settings for Ruff formatter configuration

This commit is contained in:
BalconyJH 2025-02-08 18:03:58 +08:00
parent 3478e33e1c
commit fbbd002a50
No known key found for this signature in database
GPG Key ID: FF602923BD2A1FAF

View File

@ -33,10 +33,10 @@
"python.testing.unittestEnabled": false, "python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true, "python.testing.pytestEnabled": true,
"[python]": { "[python]": {
"editor.defaultFormatter": "charliermarsh.ruff", // 使 Ruff "editor.defaultFormatter": "charliermarsh.ruff",
"editor.wordBasedSuggestions": "allDocuments", "editor.wordBasedSuggestions": "allDocuments",
"editor.formatOnType": true, "editor.formatOnType": true,
"editor.formatOnSave": true, // "editor.formatOnSave": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.ruff": "explicit", "source.fixAll.ruff": "explicit",
"source.organizeImports": "explicit" "source.organizeImports": "explicit"