VSCode 中使用vue 格式化template 2缩进

vscode-->文件-->搜选项-->设置


"editor.tabSize": 2, // 2缩进
"vetur.format.defaultFormatter.html": "js-beautify-html",// 安装vetur插件
 "editor.detectIndentation": false,// 因为vscode默认启用了根据文件类型自动设置tabsize的选项,在设置中添加

你可能感兴趣的:(VSCode 中使用vue 格式化template 2缩进)