vscode格式化代码属性换行解决办法

文件》首选项》设置

vscode格式化代码属性换行解决办法_第1张图片

vscode格式化代码属性换行解决办法_第2张图片

 在settings.json中写入下面代码 保存一下就可以了,注意 貌似得安装格式化插件jJS-CSS-HTML Formatter

"typescript.validate.enable": false,
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
          "wrap_line_length": 120,
          "wrap_attributes": "auto",
          "end_with_newline": false
        }
      }

 

你可能感兴趣的:(vscode)