settings.json 1.5 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. "source.fixAll.eslint": true, // 运行eslint
  12. "source.organizeImports": true // 整理import语句(包括import的成员),以及会删掉未使用的导入,注意:会删掉declare global {import utils from 'billd-utils';}的import utils from 'billd-utils';
  13. // "source.sortImports": true // 对您的导入进行排序,然而,与organizeImports不同,它不会删除任何未使用的导入,也不会对import里面的成员进行排序
  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. }