🔧 VSCode配置修改

This commit is contained in:
AkashiCoin 2024-09-07 17:11:01 +08:00
parent 1790a0b09e
commit 2b006b8f5e

28
.vscode/settings.json vendored
View File

@ -28,5 +28,31 @@
"python.analysis.autoImportCompletions": true,
"python.testing.pytestArgs": ["tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff", // 使 Ruff
"editor.wordBasedSuggestions": "allDocuments",
"editor.formatOnType": true,
"editor.formatOnSave": true, //
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "explicit",
"source.organizeImports": "explicit"
}
},
"ruff.format.preview": false,
"isort.check": true,
"ruff.importStrategy": "useBundled",
"ruff.organizeImports": false,
"[javascript]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[json]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[yaml]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[markdown]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
}