settings.json 6.1 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.fontFamily": "Input Mono, FiraCode-Retina, monospace",
  18. "editor.fontLigatures": true,
  19. "editor.largeFileOptimizations": false,
  20. "editor.accessibilitySupport": "off",
  21. "editor.cursorSmoothCaretAnimation": "on",
  22. "editor.guides.bracketPairs": "active",
  23. "editor.inlineSuggest.enabled": true,
  24. "editor.suggestSelection": "recentlyUsedByPrefix",
  25. "editor.acceptSuggestionOnEnter": "smart",
  26. "editor.suggest.snippetsPreventQuickSuggestions": false,
  27. "editor.stickyScroll.enabled": true,
  28. "editor.hover.sticky": true,
  29. "editor.suggest.insertMode": "replace",
  30. "editor.bracketPairColorization.enabled": true,
  31. "editor.autoClosingBrackets": "beforeWhitespace",
  32. "editor.autoClosingDelete": "always",
  33. "editor.autoClosingOvertype": "always",
  34. "editor.autoClosingQuotes": "beforeWhitespace",
  35. "editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?",
  36. "editor.codeActionsOnSave": {
  37. "source.fixAll.eslint": "explicit",
  38. "source.fixAll.stylelint": "explicit",
  39. "source.organizeImports": "never"
  40. },
  41. // extensions
  42. "extensions.ignoreRecommendations": true,
  43. // terminal
  44. "terminal.integrated.cursorBlinking": true,
  45. "terminal.integrated.persistentSessionReviveProcess": "never",
  46. "terminal.integrated.tabs.enabled": true,
  47. "terminal.integrated.scrollback": 10000,
  48. "terminal.integrated.stickyScroll.enabled": true,
  49. // files
  50. "files.eol": "\n",
  51. "files.insertFinalNewline": true,
  52. "files.simpleDialog.enable": true,
  53. "files.associations": {
  54. "*.ejs": "html",
  55. "*.art": "html",
  56. "**/tsconfig.json": "jsonc",
  57. "*.json": "jsonc"
  58. },
  59. "files.exclude": {
  60. "**/.editorconfig": true,
  61. "**/.eslintcache": true,
  62. "**/bower_components": true,
  63. "**/.turbo": true,
  64. "**/.idea": true,
  65. "**/tmp": true,
  66. "**/.git": true,
  67. "**/.svn": true,
  68. "**/.hg": true,
  69. "**/CVS": true,
  70. "**/.stylelintcache": true,
  71. "**/.DS_Store": true,
  72. "**/vite.config.mts.*": true
  73. },
  74. "files.watcherExclude": {
  75. "**/.git/objects/**": true,
  76. "**/.git/subtree-cache/**": true,
  77. "**/.vscode/**": true,
  78. "**/node_modules/**": true,
  79. "**/tmp/**": true,
  80. "**/bower_components/**": true,
  81. "**/dist/**": true,
  82. "**/yarn.lock": true
  83. },
  84. // search
  85. "search.searchEditor.singleClickBehaviour": "peekDefinition",
  86. "search.followSymlinks": false,
  87. // 在使用搜索功能时,将这些文件夹/文件排除在外
  88. "search.exclude": {
  89. "**/node_modules": true,
  90. "**/*.log": true,
  91. "**/*.log*": true,
  92. "**/bower_components": true,
  93. "**/dist": true,
  94. "**/elehukouben": true,
  95. "**/.git": true,
  96. "**/.github": true,
  97. "**/.gitignore": true,
  98. "**/.svn": true,
  99. "**/.DS_Store": true,
  100. "**/.vitepress/cache": true,
  101. "**/.idea": true,
  102. "**/.vscode": false,
  103. "**/.yarn": true,
  104. "**/tmp": true,
  105. "*.xml": true,
  106. "out": true,
  107. "dist": true,
  108. "node_modules": true,
  109. "CHANGELOG.md": true,
  110. "**/pnpm-lock.yaml": true,
  111. "**/yarn.lock": true
  112. },
  113. "debug.onTaskErrors": "debugAnyway",
  114. "diffEditor.ignoreTrimWhitespace": false,
  115. "npm.packageManager": "pnpm",
  116. "css.validate": false,
  117. "less.validate": false,
  118. "scss.validate": false,
  119. // extension
  120. "emmet.showSuggestionsAsSnippets": true,
  121. "emmet.triggerExpansionOnTab": false,
  122. "errorLens.enabledDiagnosticLevels": ["warning", "error"],
  123. "errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"],
  124. "stylelint.enable": true,
  125. "stylelint.packageManager": "pnpm",
  126. "stylelint.validate": ["css", "less", "postcss", "scss", "vue"],
  127. "stylelint.snippet": ["css", "less", "postcss", "scss", "vue"],
  128. "typescript.inlayHints.enumMemberValues.enabled": true,
  129. "typescript.preferences.preferTypeOnlyAutoImports": true,
  130. "typescript.preferences.includePackageJsonAutoImports": "on",
  131. // Enable the ESlint flat config support
  132. "eslint.experimental.useFlatConfig": true,
  133. "eslint.validate": [
  134. "javascript",
  135. "typescript",
  136. "javascriptreact",
  137. "typescriptreact",
  138. "vue",
  139. "html",
  140. "markdown",
  141. "json",
  142. "jsonc",
  143. "json5"
  144. ],
  145. "tailwindCSS.experimental.classRegex": [
  146. ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
  147. ],
  148. "github.copilot.enable": {
  149. "*": true,
  150. "markdown": true,
  151. "plaintext": false,
  152. "yaml": false
  153. },
  154. "cssVariables.lookupFiles": [
  155. "packages/@vben-core/shared/design-tokens/src/**/*.css"
  156. ],
  157. "i18n-ally.localesPaths": ["packages/locales/src/langs"],
  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. }