vscode安装vetur插件写.vue文件html代码没法格式化解决方法

文件-首选项-设置-找到vetur插件-点击“在settings.json中编辑”javascript

加入如下代码便可解决问题html

"vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
        "wrap_line_length": 120,
        "wrap_attributes": "auto",
        "end_with_newline": false
    }
}
相关文章
相关标签/搜索