{
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"prettier": {
"semi": false, // 格式化不加分号
"singleQuote": true // 格式化以单引号为主
},
"js-beautify-html": {
"wrap_line_length": 130, // 设置多个字符后换行 0 表示忽略
"wrap_attributes": "auto", // html 标签属性 换行设置[auto|force|force-aligned|force-expand-multiline] [“auto”]
"end_with_newline": false // 在文件结尾添加新行
}
},
"editor.formatOnSave": true,
"editor.formatOnType": true,
"cssrem.rootFontSize": 16,
"[javascript]": {
"editor.defaultFormatter": "lonefy.vscode-JS-CSS-HTML-formatter"
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"liveServer.settings.donotShowInfoMsg": true,
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[css]": {
"editor.defaultFormatter": "lonefy.vscode-JS-CSS-HTML-formatter"
},
}
VScode设置
最新推荐文章于 2024-04-15 09:41:48 发布