settings.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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": "explicit",
  12. "source.organizeImports": "explicit"
  13. },
  14. // "eslint.autoFixOnSave": true, // 废弃,使用editor.codeActionsOnSave替代
  15. // Path Autocomplete,这个插件能够支持路径补全,默认vsc默认的路径提示可能不会提示一些css或者jpg等资源,用这个插件可以完善vscode的路径提示
  16. "path-autocomplete.pathMappings": {
  17. "@": "${folder}/src",
  18. "script": ["${folder}/src/script"]
  19. },
  20. // 别名路径跳转,这个插件可以完善vscode的跳转
  21. "alias-skip.allowedsuffix": [
  22. "css",
  23. "less",
  24. "sass",
  25. "scss",
  26. "jpg",
  27. "jpeg",
  28. "png",
  29. "webp",
  30. "gif",
  31. "svg",
  32. "js",
  33. "jsx",
  34. "ts",
  35. "tsx",
  36. "vue"
  37. ],
  38. "typescript.tsdk": "node_modules/typescript/lib",
  39. "vue.codeActions.savingTimeLimit": 2000
  40. }