vs code安装vue格式化插件

第一步,搜索vetur进行安装,进入扩展设置

第二步

 

 

第三

{
    "vetur.format.defaultFormatterOptions": {
       
        "js-beautify-html": {
            "wrap_attributes": "aligned-multiple"
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    },
    "vetur.format.defaultFormatter.html": "js-beautify-html"
}
posted @ 2021-11-16 10:29  meeto  阅读(457)  评论(0)    收藏  举报