vscode配置文件修改

279 阅读1分钟

保存自动格式化代码

 "eslint.autoFixOnSave": true,

修改保存时格式化代码的tabsize

"vetur.format.options.tabSize": 4

vue 格式化代码后不要保持在一行

"vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-aligned"
    }
  },

保存时自动打包less文件,Easy Less

//修改打包路径与输出路径
"less.compile" : {
    main : "${workspaceRoot}/*",
    out : "${workspaceRoot}/*",
}