{
  // 设置全部语言在保存时自动格式化
  "editor.formatOnSave": true,
  // 使用VScode的时候会有很多的搜索操作，造成卡顿
  "search.followSymlinks": false,
  "workbench.editor.enablePreview": false,
  "editor.wordWrap": "on",
  "editor.detectIndentation": true,
  "editor.fontLigatures": true,
  "git.autofetch": true,
  "git.confirmSync": false,
  "git.suggestSmartCommit": false,
  // 让函数(名)和后面的括号之间加个空格
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  // 参考https://blog.csdn.net/userkang/article/details/84305689
  "vetur.format.defaultFormatter.html": "prettyhtml",
  // 100 列后换行
  "editor.wordWrapColumn": 130,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  // 设置特定语言在保存时自动格式化
  "[html]": {
    "editor.defaultFormatter": "vscode.html-language-features"
  },
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "[scss]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[less]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },
  "js/ts.implicitProjectConfig.checkJs": true,
  "editor.multiCursorModifier": "ctrlCmd",
  "editor.formatOnPaste": true,
  "debug.allowBreakpointsEverywhere": true,
  "files.autoSave": "afterDelay",
  "workbench.startupEditor": "newUntitledFile",
  "vetur.format.defaultFormatterOptions": {
    "prettyhtml": {
      "printWidth": 100,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": true
    }
  },
  "search.location": "panel",
  "files.associations": {
    "*.env.*": "markdown",
    ".prettierrc": "json"
  },
  "fileheader.configObj": {
    "wideSame": true, // 设置为true开启
    "wideNum": 13, // 字段长度 默认为13
    "autoAdd": true, // 检测文件没有头部注释，自动添加文件头部注释
    "autoAddLine": 50, // 文件超过多少行数 不再自动添加头部注释
    "autoAlready": true, // 只添加插件支持的语言以及用户通过`language`选项自定义的注释
    "supportAutoLanguage": [], // 设置之后，在数组内的文件才支持自动添加
    // 自动添加头部注释黑名单
    "prohibitAutoAdd": [
      "json"
    ]
  },
  // 设置 eslint 保存时自动修复
  "eslint.autoFixOnSave": true,
  "eslint.alwaysShowStatus": true,
  // eslint 检测文件类型
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "html",
      "autoFix": true
    },
    {
      "language": "vue",
      "autoFix": true
    }
  ]
}