settings.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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.detectIndentation": false,
  15. "editor.cursorBlinking": "expand",
  16. "editor.defaultFormatter": "esbenp.prettier-vscode",
  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": "recentlyUsedByPrefix",
  23. "editor.acceptSuggestionOnEnter": "smart",
  24. "editor.suggest.snippetsPreventQuickSuggestions": false,
  25. "editor.stickyScroll.enabled": true,
  26. "editor.hover.sticky": true,
  27. "editor.suggest.insertMode": "replace",
  28. "editor.bracketPairColorization.enabled": true,
  29. "editor.autoClosingBrackets": "beforeWhitespace",
  30. "editor.autoClosingDelete": "always",
  31. "editor.autoClosingOvertype": "always",
  32. "editor.autoClosingQuotes": "beforeWhitespace",
  33. "editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?",
  34. "editor.codeActionsOnSave": {
  35. "source.fixAll.eslint": "explicit",
  36. "source.fixAll.stylelint": "explicit",
  37. "source.organizeImports": "never"
  38. },
  39. // extensions
  40. "extensions.ignoreRecommendations": true,
  41. // terminal
  42. "terminal.integrated.cursorBlinking": true,
  43. "terminal.integrated.persistentSessionReviveProcess": "never",
  44. "terminal.integrated.tabs.enabled": true,
  45. "terminal.integrated.scrollback": 10000,
  46. "terminal.integrated.stickyScroll.enabled": true,
  47. // files
  48. "files.eol": "\n",
  49. "files.insertFinalNewline": true,
  50. "files.simpleDialog.enable": true,
  51. "files.associations": {
  52. "*.ejs": "html",
  53. "*.art": "html",
  54. "**/tsconfig.json": "jsonc",
  55. "*.json": "jsonc"
  56. },
  57. "files.exclude": {
  58. "**/.eslintcache": true,
  59. "**/bower_components": true,
  60. "**/.turbo": true,
  61. "**/.idea": true,
  62. "**/tmp": true,
  63. "**/.git": true,
  64. "**/.svn": true,
  65. "**/.hg": true,
  66. "**/CVS": true,
  67. "**/.stylelintcache": true,
  68. "**/.DS_Store": true,
  69. "**/vite.config.mts.*": true
  70. },
  71. "files.watcherExclude": {
  72. "**/.git/objects/**": true,
  73. "**/.git/subtree-cache/**": true,
  74. "**/.vscode/**": true,
  75. "**/node_modules/**": true,
  76. "**/tmp/**": true,
  77. "**/bower_components/**": true,
  78. "**/dist/**": true,
  79. "**/yarn.lock": true
  80. },
  81. // search
  82. "search.searchEditor.singleClickBehaviour": "peekDefinition",
  83. "search.followSymlinks": false,
  84. // 在使用搜索功能时,将这些文件夹/文件排除在外
  85. "search.exclude": {
  86. "**/node_modules": true,
  87. "**/*.log": true,
  88. "**/*.log*": true,
  89. "**/bower_components": true,
  90. "**/dist": true,
  91. "**/elehukouben": true,
  92. "**/.git": true,
  93. "**/.github": true,
  94. "**/.gitignore": true,
  95. "**/.svn": true,
  96. "**/.DS_Store": true,
  97. "**/.vitepress/cache": true,
  98. "**/.idea": true,
  99. "**/.vscode": false,
  100. "**/.yarn": true,
  101. "**/tmp": true,
  102. "*.xml": true,
  103. "out": true,
  104. "dist": true,
  105. "node_modules": true,
  106. "CHANGELOG.md": true,
  107. "**/pnpm-lock.yaml": true,
  108. "**/yarn.lock": true
  109. },
  110. "debug.onTaskErrors": "debugAnyway",
  111. "diffEditor.ignoreTrimWhitespace": false,
  112. "npm.packageManager": "pnpm",
  113. "css.validate": false,
  114. "less.validate": false,
  115. "scss.validate": false,
  116. // extension
  117. "emmet.showSuggestionsAsSnippets": true,
  118. "emmet.triggerExpansionOnTab": false,
  119. "errorLens.enabledDiagnosticLevels": ["warning", "error"],
  120. "errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"],
  121. "stylelint.enable": true,
  122. "stylelint.packageManager": "pnpm",
  123. "stylelint.validate": ["css", "less", "postcss", "scss", "vue"],
  124. "stylelint.snippet": ["css", "less", "postcss", "scss", "vue"],
  125. "typescript.inlayHints.enumMemberValues.enabled": true,
  126. "typescript.preferences.preferTypeOnlyAutoImports": true,
  127. "typescript.preferences.includePackageJsonAutoImports": "on",
  128. // Enable the ESlint flat config support
  129. "eslint.experimental.useFlatConfig": true,
  130. "eslint.validate": [
  131. "javascript",
  132. "typescript",
  133. "javascriptreact",
  134. "typescriptreact",
  135. "vue",
  136. "html",
  137. "markdown",
  138. "json",
  139. "jsonc",
  140. "json5"
  141. ],
  142. "tailwindCSS.experimental.classRegex": [
  143. ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
  144. ],
  145. "github.copilot.enable": {
  146. "*": true,
  147. "markdown": true,
  148. "plaintext": false,
  149. "yaml": false
  150. },
  151. "cssVariables.lookupFiles": [
  152. "packages/@vben-core/shared/design-tokens/src/**/*.css"
  153. ],
  154. "i18n-ally.localesPaths": [
  155. "packages/@core/locales/src/langs",
  156. "apps/*/src/locales/langs"
  157. ],
  158. "i18n-ally.enabledParsers": ["json", "ts", "js", "yaml"],
  159. "i18n-ally.sourceLanguage": "en",
  160. "i18n-ally.displayLanguage": "zh-CN",
  161. "i18n-ally.enabledFrameworks": ["vue", "react"],
  162. // 控制相关文件嵌套展示
  163. "explorer.fileNesting.enabled": true,
  164. "explorer.fileNesting.expand": false,
  165. "explorer.fileNesting.patterns": {
  166. "*.ts": "$(capture).test.ts, $(capture).test.tsx, $(capture).spec.ts, $(capture).spec.tsx, $(capture).d.ts",
  167. "*.tsx": "$(capture).test.ts, $(capture).test.tsx, $(capture).spec.ts, $(capture).spec.tsx,$(capture).d.ts",
  168. "*.env": "$(capture).env.*",
  169. "README.md": "README*,CHANGELOG*,LICENSE,CNAME",
  170. "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,.gitattributes,.gitignore,.gitpod.yml,.npmrc,.browserslistrc,.node-version,.git*,.tazerc.json",
  171. "Dockerfile": "Dockerfile,.docker*,docker-entrypoint.sh,build-local-docker*",
  172. "eslint.config.mjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,stylelint.config.*,.lintstagedrc.mjs,.ls-lint*,cspell.json",
  173. "tailwind.config.mjs": "postcss.*"
  174. },
  175. "commentTranslate.hover.enabled": true,
  176. "i18n-ally.keystyle": "nested"
  177. }