美文网首页
vscode 保存自动校验错误并格式化配置代码

vscode 保存自动校验错误并格式化配置代码

作者: 前端Tree | 来源:发表于2021-03-08 09:26 被阅读0次
{
  "workbench.startupEditor": "welcomePage",
  "editor.tabSize": 2,
  // "eslint.validate": [
  //   "javascript",
  //   "javascriptreact",
  //   {
  //     "language": "html",
  //     "autoFix": true
  //   },
  //   {
  //     "language": "vue",
  //     "autoFix": true
  //   }
  // ],
  // "editor.codeActionsOnSave": {
  //   "source.fixAll.eslint": true
  // },
  "workbench.iconTheme": "vscode-icons",
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "files.autoSave": "afterDelay",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  // #每次保存的时候自动格式化 
  "editor.formatOnSave": true,
}
image.png

相关文章

网友评论

      本文标题:vscode 保存自动校验错误并格式化配置代码

      本文链接:https://www.haomeiwen.com/subject/ikfpqltx.html