vsCode配置

"vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {

        "js-beautify-html": {
            "wrap_line_length":0,// 设置多个字符后换行 0 表示忽略
            "wrap_attributes":"auto", //html 标签属性 换行设置[auto|force|force-aligned|force-expand-multiline] ["auto"]
            "end_with_newline":false // 在文件结尾添加新行
        },
        "prettier": {
            "semi": false, //要不要分号
            "singleQuote": true //单引号
        },
        "prettyhtml": {
            "printWidth": 300,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    },

 

posted @ 2022-08-16 09:07  小明明同学  阅读(65)  评论(0编辑  收藏  举报