settings.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. {
  2. "tailwindCSS.experimental.configFile": "internal/tailwind-config/src/index.ts",
  3. // workbench
  4. "workbench.list.smoothScrolling": true,
  5. "workbench.startupEditor": "newUntitledFile",
  6. "workbench.tree.indent": 10,
  7. "workbench.editor.highlightModifiedTabs": true,
  8. "workbench.editor.closeOnFileDelete": true,
  9. "workbench.editor.limit.enabled": true,
  10. "workbench.editor.limit.perEditorGroup": true,
  11. "workbench.editor.limit.value": 5,
  12. // editor
  13. "editor.tabSize": 2,
  14. "editor.defaultFormatter": "esbenp.prettier-vscode",
  15. "editor.fontFamily": "Input Mono, FiraCode-Retina, monospace",
  16. "editor.fontLigatures": true,
  17. "editor.largeFileOptimizations": false,
  18. "editor.accessibilitySupport": "off",
  19. "editor.cursorSmoothCaretAnimation": "on",
  20. "editor.guides.bracketPairs": "active",
  21. "editor.inlineSuggest.enabled": true,
  22. "editor.suggestSelection": "first",
  23. "editor.stickyScroll.enabled": true,
  24. "editor.hover.sticky": true,
  25. "editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?",
  26. "editor.codeActionsOnSave": {
  27. "source.fixAll.eslint": "explicit",
  28. "source.fixAll.stylelint": "explicit",
  29. "source.organizeImports": "never"
  30. },
  31. // extensions
  32. "extensions.ignoreRecommendations": true,
  33. // terminal
  34. "terminal.integrated.cursorBlinking": true,
  35. "terminal.integrated.persistentSessionReviveProcess": "never",
  36. "terminal.integrated.tabs.enabled": true,
  37. "terminal.integrated.scrollback": 10000,
  38. // files
  39. "files.eol": "\n",
  40. "files.insertFinalNewline": true,
  41. "files.simpleDialog.enable": true,
  42. "files.associations": {
  43. "*.ejs": "html",
  44. "*.art": "html",
  45. "**/tsconfig.json": "jsonc"
  46. // "*.json": "jsonc"
  47. },
  48. "files.exclude": {
  49. "**/.editorconfig": true,
  50. "**/.eslintcache": true,
  51. "**/bower_components": true,
  52. "**/.turbo": true,
  53. "**/.idea": true,
  54. "**/tmp": true,
  55. "**/.git": true,
  56. "**/.svn": true,
  57. "**/.hg": true,
  58. "**/CVS": true,
  59. "**/.stylelintcache": true,
  60. "**/.DS_Store": true,
  61. "**/vite.config.mts.*": true
  62. },
  63. "files.watcherExclude": {
  64. "**/.git/objects/**": true,
  65. "**/.git/subtree-cache/**": true,
  66. "**/.vscode/**": true,
  67. "**/node_modules/**": true,
  68. "**/tmp/**": true,
  69. "**/bower_components/**": true,
  70. "**/dist/**": true,
  71. "**/yarn.lock": true
  72. },
  73. // search
  74. "search.followSymlinks": false,
  75. // 在使用搜索功能时,将这些文件夹/文件排除在外
  76. "search.exclude": {
  77. "**/node_modules": true,
  78. "**/*.log": true,
  79. "**/*.log*": true,
  80. "**/bower_components": true,
  81. "**/dist": true,
  82. "**/elehukouben": true,
  83. "**/.git": true,
  84. "**/.github": true,
  85. "**/.gitignore": true,
  86. "**/.svn": true,
  87. "**/.DS_Store": true,
  88. "**/.idea": true,
  89. "**/.vscode": false,
  90. "**/.yarn": true,
  91. "**/tmp": true,
  92. "*.xml": true,
  93. "out": true,
  94. "dist": true,
  95. "node_modules": true,
  96. "CHANGELOG.md": true,
  97. "**/pnpm-lock.yaml": true,
  98. "**/yarn.lock": true
  99. },
  100. "debug.onTaskErrors": "debugAnyway",
  101. "diffEditor.ignoreTrimWhitespace": false,
  102. "npm.packageManager": "pnpm",
  103. "css.validate": false,
  104. "less.validate": false,
  105. "scss.validate": false,
  106. // extension
  107. "emmet.showSuggestionsAsSnippets": true,
  108. "emmet.triggerExpansionOnTab": false,
  109. "errorLens.enabledDiagnosticLevels": ["warning", "error"],
  110. "errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"],
  111. "stylelint.enable": true,
  112. "stylelint.packageManager": "pnpm",
  113. "stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
  114. // Enable the ESlint flat config support
  115. "eslint.experimental.useFlatConfig": true,
  116. "eslint.validate": [
  117. "javascript",
  118. "typescript",
  119. "javascriptreact",
  120. "typescriptreact",
  121. "vue",
  122. "html",
  123. "markdown",
  124. "json",
  125. "jsonc",
  126. "json5"
  127. ],
  128. "github.copilot.enable": {
  129. "*": true,
  130. "markdown": true,
  131. "plaintext": false,
  132. "yaml": false
  133. },
  134. "cssVariables.lookupFiles": [
  135. "packages/@vben-core/shared/design-tokens/src/**/*.css"
  136. ],
  137. "cSpell.words": [
  138. "vben",
  139. "iconify",
  140. "pinia",
  141. "nprogress",
  142. "shadcn",
  143. "antd",
  144. "qrcode",
  145. "vueuse",
  146. "brotli"
  147. ],
  148. "cSpell.allowCompoundWords": true,
  149. "cSpell.language": "en,en-US",
  150. "i18n-ally.localesPaths": ["packages/locales/src/langs"],
  151. "i18n-ally.enabledParsers": ["json", "ts", "js", "yaml"],
  152. "i18n-ally.sourceLanguage": "en",
  153. "i18n-ally.displayLanguage": "zh-CN",
  154. "i18n-ally.enabledFrameworks": ["vue", "react"],
  155. // 控制相关文件嵌套展示
  156. "explorer.fileNesting.enabled": true,
  157. "explorer.fileNesting.expand": false,
  158. "explorer.fileNesting.patterns": {
  159. "*.ts": "$(capture).test.ts, $(capture).test.tsx",
  160. "*.tsx": "$(capture).test.ts, $(capture).test.tsx",
  161. "*.env": "$(capture).env.*",
  162. "README.md": "README*,CHANGELOG*,LICENSE,CNAME",
  163. "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,.gitattributes,.gitignore,.gitpod.yml,.npmrc,.browserslistrc,.node-version,.git*,.tazerc.json",
  164. "eslint.config.mjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,stylelint.config.*,.lintstagedrc.mjs,.ls-lint*",
  165. "tailwind.config.mjs": "postcss.*"
  166. },
  167. "commentTranslate.hover.enabled": true,
  168. "i18n-ally.keystyle": "nested"
  169. }