settings.json 1.5 KB

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