Skip to content

Commit

Permalink
🧑‍💻 Update VSCode settings for Ruff formatter configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
BalconyJH committed Feb 8, 2025
1 parent 3478e33 commit fbbd002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff", // 默认使用 Ruff 格式化
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.wordBasedSuggestions": "allDocuments",
"editor.formatOnType": true,
"editor.formatOnSave": true, // 保存时自动格式化
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "explicit",
"source.organizeImports": "explicit"
Expand Down

0 comments on commit fbbd002

Please sign in to comment.