settings.json 818 B

123456789101112131415161718192021222324252627
  1. {
  2. //为了符合eslint的两个空格间隔原则
  3. "editor.tabSize": 2,
  4. //配置eslint
  5. "files.autoSave":"off",
  6. "editor.codeActionsOnSave": {
  7. "source.fixAll.eslint": true
  8. },
  9. "eslint.run": "onSave",
  10. // 控制是否将打开的编辑器显示为预览。预览编辑器将会重用至其被保留(例如,通过双击或编辑),且其字体样式将为斜体。
  11. "workbench.editor.enablePreview": false,
  12. "search.exclude": {
  13. "**/dist": true,
  14. "**/static": true
  15. },
  16. "workbench.colorCustomizations": {
  17. "activityBar.background": "#332A3A",
  18. "titleBar.activeBackground": "#473B52",
  19. "titleBar.activeForeground": "#FBFAFB"
  20. },
  21. "eslint.enable": true,
  22. "editor.codeActionsOnSave": {
  23. "source.fixAll": true,
  24. "source.fixAll.eslint": true
  25. },
  26. "editor.formatOnSave": true
  27. }