settings.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. // 指定行尾序列为\n(LF)或者\r\n(CRLF)或者auto
  3. // "files.eol": "\n",
  4. // 在保存时格式化
  5. "editor.formatOnSave": true,
  6. "editor.formatOnSaveMode": "file",
  7. "eslint.codeActionsOnSave.mode": "problems",
  8. "eslint.debug": false,
  9. // 保存时进行一些操作
  10. "editor.codeActionsOnSave": {
  11. // 在保存时运行eslint
  12. "source.fixAll.eslint": true,
  13. "source.organizeImports": true // 保存时整理 import ,去掉没用的导包,会删掉declare global {import utils from 'billd-utils';},因此先不用
  14. },
  15. // "eslint.autoFixOnSave": true, // 废弃,使用editor.codeActionsOnSave替代
  16. // Path Autocomplete,这个插件能够支持路径补全,默认vsc默认的路径提示可能不会提示一些css或者jpg等资源,用这个插件可以完善vscode的路径提示
  17. "path-autocomplete.pathMappings": {
  18. "@": "${folder}/src",
  19. "script": ["${folder}/src/script"]
  20. },
  21. // 别名路径跳转,这个插件可以完善vscode的跳转
  22. "alias-skip.allowedsuffix": [
  23. "css",
  24. "less",
  25. "sass",
  26. "scss",
  27. "jpg",
  28. "jpeg",
  29. "png",
  30. "webp",
  31. "gif",
  32. "svg",
  33. "js",
  34. "jsx",
  35. "ts",
  36. "tsx",
  37. "vue"
  38. ],
  39. "typescript.tsdk": "node_modules/typescript/lib",
  40. "vue.codeActions.savingTimeLimit": 2000
  41. }