vue vetur格式化代码

使用快捷键打开设置:

ctrl + shift + p

 

然后输入setting

 

 

替换成以下配置

{
    "window.zoomLevel": 1,
    "files.associations": {
        "*.wpy": "vue",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
    },
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "minapp-vscode.disableAutoConfig": true,
    "explorer.confirmDelete": false,
    "vetur.format.options.tabSize": 4,
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "auto"
        }
    }
}

 

posted @ 2020-08-10 19:17  科技改变未来☆  阅读(479)  评论(0编辑  收藏  举报