{
"workbench.iconTheme": "vscode-icons",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
// "editor.defaultFormatter": "esbenp.prettier-vscode",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"prettier": {
"tabWidth": 4,
"printWidth": 120,
"semi": true,
"singleQuote": true,
"arrowParens": "avoid"
},
"vetur.format.defaultFormatter.js": "prettier-eslint",
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
},
"prettier": {
"tabWidth": 4,
"printWidth": 120,
"semi": true,
"singleQuote": true,
"arrowParens": "avoid"
}
},
"html.format.indentInnerHtml": true,
"html.format.wrapAttributes": "force-aligned",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.format.semicolons": "insert",
"eslint.validate": [
"javascript",
"javascriptreact",
"vue"
],
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue"
}
vscode settings.json 设置
最新推荐文章于 2024-05-17 08:08:50 发布