settings.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "editor.formatOnSave": true,
  3. "editor.tabSize": 2,
  4. "[jsonc]": {
  5. "editor.defaultFormatter": "esbenp.prettier-vscode"
  6. },
  7. "[javascript]": {
  8. "editor.defaultFormatter": "vscode.typescript-language-features"
  9. },
  10. "editor.renderWhitespace": "none",
  11. "editor.renderControlCharacters": false,
  12. "typescript.validate.enable": false,
  13. "vetur.format.defaultFormatter.html": "js-beautify-html",
  14. "vetur.format.defaultFormatter.js": "vscode-typescript",
  15. "vetur.format.defaultFormatterOptions": {
  16. "js-beautify-html": {
  17. "wrap_attributes": "auto",
  18. "wrap_attributes_mode": "auto",
  19. "wrap_line_length": 100,
  20. "wrapped_attributes_per_line": "multiple",
  21. "wrapped_attributes_indent": "auto",
  22. "wrapped_attributes_end": "auto"
  23. },
  24. "prettier": {
  25. "proseWrap": "never",
  26. "printWidth": 200,
  27. "semi": true, //要不要分号
  28. "singleQuote": true //单引号
  29. }
  30. },
  31. "editor.quickSuggestions": {
  32. "strings": true
  33. },
  34. "element-helper.language": "zh-CN",
  35. "element-helper.version": "2.5",
  36. "element-helper.indent-size": 2,
  37. "element-helper.quotes": "double",
  38. "element-helper.pug-quotes": "single",
  39. "[typescript]": {
  40. "editor.defaultFormatter": "vscode.typescript-language-features"
  41. },
  42. "javascript.validate.enable": true,
  43. "javascript.implicitProjectConfig.checkJs": true,
  44. "[scss]": {
  45. "editor.defaultFormatter": "vscode.css-language-features"
  46. },
  47. "[vue]": {
  48. "editor.defaultFormatter": "octref.vetur"
  49. },
  50. "[json]": {
  51. "editor.defaultFormatter": "vscode.json-language-features"
  52. },
  53. "editor.unicodeHighlight.ambiguousCharacters": false,
  54. "editor.inlineSuggest.enabled": true,
  55. "bracket-pair-colorizer-2.depreciation-notice": false,
  56. "[css]": {
  57. "editor.defaultFormatter": "vscode.css-language-features"
  58. },
  59. "gitlens.hovers.currentLine.over": "line"
  60. }