settings.json 495 B

12345678910111213141516
  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. }