标签宽度似乎不想改变!
["INFO" - 11:35:10 AM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:35:10 AM] Prettier Options:
{
"filepath": "/Users/karl/Development/app/.vscode/settings.json",
"parser": "json",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
["INFO" - 11:35:10 AM] Formatting completed in 0.009ms.
这是我的/Users/karl/Development/app/.vscode/settings.json
文件中的内容:
{
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.languageServer": "Microsoft",
"editor.formatOnSave": true,
"typescript.format.enable": false,
"typescript.validate.enable": false,
"files.insertFinalNewline": true,
"python.pythonPath": "build/tmp/pytest-env/bin/python",
"python.languageServer": "Pylance",
"python.linting.mypyEnabled": true,
"python.linting.pylintEnabled": true,
"python.analysis.extraPaths": [
"bin",
"services/console/lib",
"services/console/reconciler"
],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"prettier.tabWidth": 2,
"prettier.useTabs": false
}
超级奇怪为什么它不尊重缩进选项?