vscode 格式化统一配置 settings.json
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.printWidth": 100,
"prettier.semi": false,
"prettier.jsxSingleQuote": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "none",
"prettier.endOfLine": "auto",
"prettier.bracketSameLine": true,
"prettier.htmlWhitespaceSensitivity": "ignore",
"prettier.vueIndentScriptAndStyle": true,
"editor.codeActionsOnSave": {
},
"editor.formatOnSave": true,
}
{
"folders": [
{
"path": "F:/Users/user/桌面/pro/dt-management"
}
],
"settings": {
"editor.formatOnPaste": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.codeActionsOnSave": {
}
}
}