vscode vetur 自定义设置代码格式化

117 阅读1分钟

vscode vetur 自定义设置代码格式化,自动换行的字符数设置

在{}中的最后面,添加如下代码

"typescript.validate.enable": false,
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_line_length": 2000, // 最多容纳多少个字符,开始换行
            "wrap_attributes": "auto",
            "end_with_newline": false
        }
    }