setting.json

149 阅读1分钟
{
  "editor.quickSuggestions": {
    "strings": true
  },
  "git.autofetch": true,
  "editor.tabSize": 2,
  "editor.formatOnSave": true,
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_line_length": 180,
      "wrap_attributes": "auto",
      "end_with_newline": false
    },
    "prettyhtml": {
      "printWidth": 1000,
      "wrapAttributes": false
    },
    "prettier": {
      "semi": false, // 设置分号
      "singleQuote": true, // 双引号变成单引号
      "trailingComma": "none" // 禁止随时添加逗号,这个很重要。找了好久
    }
  },
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },
  "editor.fontSize": 16,
  "editor.semanticTokenColorCustomizations": null,
  "files.autoSave": "afterDelay",
  "editor.codeActionsOnSave": null,
  "workbench.sash.size": 8,
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.wordWrap": "on",
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "eslint.codeAction.showDocumentation": {
    "enable": true
  },
  "eslint.enable": false,
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "git.confirmSync": false,
  "workbench.iconTheme": "eq-material-theme-icons",
  "editor.unicodeHighlight.allowedCharacters": {
    ":": true
  },
  "typescript.updateImportsOnFileMove.enabled": "never",
  "[less]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "bracketPairColorizer.depreciation-notice": false,
  "liveServer.settings.donotShowInfoMsg": true,
  // "files.associations": {
  //   "*.ejs": "html",
  //   "*.js": "html",
  //   "*.vue": "html"
  // },
  // "emmet.triggerExpansionOnTab": true,
  // "emmet.includeLanguages": {
  //   "vue-html": "html",
  //   "vue": "html"
  // }
  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  },
  "cssrem.rootFontSize": 80,
  "npm.keybindingsChangedWarningShown": true,
  "[scss]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "workbench.startupEditor": "none"
}