禁止汉化!

换行

统一为LF

插件

必装:

prettier
stylelint
eslint
editor-config

推荐:

gitlens
projectmanager
spell-checker
json-to-ts

配置

  1. "[less]": {
  2. "editor.defaultFormatter": "stylelint.vscode-stylelint"
  3. },
  4. "[html]": {
  5. "editor.defaultFormatter": "esbenp.prettier-vscode"
  6. },
  7. "[css]": {
  8. "editor.defaultFormatter": "esbenp.prettier-vscode"
  9. },
  10. "editor.accessibilitySupport": "off",
  11. "[typescriptreact]": {
  12. "editor.defaultFormatter": "vscode.typescript-language-features"
  13. },
  14. "explorer.confirmDelete": false,
  15. "editor.mouseWheelZoom": true,
  16. "[javascript]": {
  17. "editor.defaultFormatter": "vscode.typescript-language-features"
  18. },
  19. "workbench.editor.untitled.hint": "hidden",
  20. "prettier.singleQuote": true,
  21. "editor.tabSize": 2,
  22. "eslint.format.enable": true,
  23. "[typescript]": {
  24. "editor.defaultFormatter": "esbenp.prettier-vscode"
  25. },
  26. "editor.fontLigatures": false,
  27. "prettier.semi": false,
  28. "eslint.codeAction.showDocumentation": {
  29. "enable": true
  30. },
  31. "terminal.external.linuxExec": "",
  32. "terminal.explorerKind": "external",
  33. "terminal.external.osxExec": "applications/hyper",
  34. "window.zoomLevel": 2,
  35. // emmet配置
  36. "emmet.includeLanguages": {
  37. "javascript": "javascriptreact",
  38. "vue-html": "html"
  39. },
  40. // "emmet.showSuggestionsAsSnippets": true,
  41. "emmet.triggerExpansionOnTab": true,
  42. "editor.defaultFormatter": "esbenp.prettier-vscode",
  43. "editor.codeActionsOnSave": [
  44. "source.sortImports",
  45. "source.organizeImports",
  46. "source.fixAll.eslint",
  47. "source.fixAll.stylelint",
  48. "source.fixAll.sortJSON"
  49. "addMissingImports"
  50. ],
  51. "eslint.validate": [
  52. "javascript",
  53. "javascriptreact",
  54. "html",
  55. "vue",
  56. "typescript",
  57. "typescriptreact"
  58. ],
  59. "files.trimTrailingWhitespace": true,
  60. "git.autofetch": true,
  61. "terminal.integrated.defaultProfile.windows": "Git Bash",
  62. // 类似 webstorm 的提示,可以自行按需开启
  63. "typescript.inlayHints.parameterTypes.enabled": true