mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🧑💻 Update VSCode settings for Ruff formatter configuration
This commit is contained in:
parent
3478e33e1c
commit
fbbd002a50
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user