vs code 代码配置
跟目录/.vscode/settings.json
json
{
"cSpell.words": ["backtop", "datasource", "Dictionarys", "echarts", "msgbox"],
// vetur 的自定义设置
"vetur.format.defaultFormatterOptions": {
"prettier": {
"printWidth": 256, // 超过140个字符换行
"singleQuote": true, // true 为使用单引号
"trailingComma": "none", // 无尾随逗号
"arrowParens": "avoid", // 箭头函数单个参数不加分号
"semi": true // 去掉分号
},
"js-beautify-html": {
"indent_size": 1,
"preserve_newlines": true,
"wrap_line_length": 256,
"wrap_attributes": "auto",
"end_with_newline": false
},
"prettyhtml": {
"printWidth": 256,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": false
}
},
"vetur.format.defaultFormatter.html": "prettyhtml",
"vetur.format.defaultFormatter.js": "vscode-typescript"
}
备案号: 湘ICP备2021015274号-3