You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
{
// 通用配置
"editor.fontSize" : 14 , // 字体大小
"editor.wordWrap" : "on" , // 自动换行
"editor.tabSize" : 2 , // 缩进2空格( Vue推荐)
"editor.formatOnSave" : true , // 保存时自动格式化
// Vue专用配置
"[vue]" : {
"editor.defaultFormatter" : "esbenp.prettier-vscode" // 使用Vetur格式化
} ,
"vetur.format.defaultFormatter.html" : "js-beautify-html" , // HTML格式化引擎
"vetur.format.defaultFormatterOptions" : {
"js-beautify-html" : {
"wrap_line_length" : 120 , // 每行最大字符数(控制标签属性换行)
"wrap_attributes" : "auto" , // 属性自动换行( auto为智能换行)
"end_with_newline" : false // 结尾不加空行
}
} ,
// Prettier配置
"prettier.singleQuote" : true , // 强制单引号
"prettier.semi" : false , // 去除分号
"files.saveConflictResolution" : "overwriteFileOnDisk"
}