settings.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. "**/.vitepress/cache": true,
  89. "**/.idea": true,
  90. "**/.vscode": false,
  91. "**/.yarn": true,
  92. "**/tmp": true,
  93. "*.xml": true,
  94. "out": true,
  95. "dist": true,
  96. "node_modules": true,
  97. "CHANGELOG.md": true,
  98. "**/pnpm-lock.yaml": true,
  99. "**/yarn.lock": true
  100. },
  101. "debug.onTaskErrors": "debugAnyway",
  102. "diffEditor.ignoreTrimWhitespace": false,
  103. "npm.packageManager": "pnpm",
  104. "css.validate": false,
  105. "less.validate": false,
  106. "scss.validate": false,
  107. // extension
  108. "emmet.showSuggestionsAsSnippets": true,
  109. "emmet.triggerExpansionOnTab": false,
  110. "errorLens.enabledDiagnosticLevels": ["warning", "error"],
  111. "errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"],
  112. "stylelint.enable": true,
  113. "stylelint.packageManager": "pnpm",
  114. "stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
  115. // Enable the ESlint flat config support
  116. "eslint.experimental.useFlatConfig": true,
  117. "eslint.validate": [
  118. "javascript",
  119. "typescript",
  120. "javascriptreact",
  121. "typescriptreact",
  122. "vue",
  123. "html",
  124. "markdown",
  125. "json",
  126. "jsonc",
  127. "json5"
  128. ],
  129. "github.copilot.enable": {
  130. "*": true,
  131. "markdown": true,
  132. "plaintext": false,
  133. "yaml": false
  134. },
  135. "cssVariables.lookupFiles": [
  136. "packages/@vben-core/shared/design-tokens/src/**/*.css"
  137. ],
  138. "cSpell.words": [
  139. "vben",
  140. "iconify",
  141. "pinia",
  142. "nprogress",
  143. "shadcn",
  144. "antd",
  145. "qrcode",
  146. "vueuse",
  147. "brotli"
  148. ],
  149. "cSpell.allowCompoundWords": true,
  150. "cSpell.language": "en,en-US",
  151. "i18n-ally.localesPaths": ["packages/locales/src/langs"],
  152. "i18n-ally.enabledParsers": ["json", "ts", "js", "yaml"],
  153. "i18n-ally.sourceLanguage": "en",
  154. "i18n-ally.displayLanguage": "zh-CN",
  155. "i18n-ally.enabledFrameworks": ["vue", "react"],
  156. // 控制相关文件嵌套展示
  157. "explorer.fileNesting.enabled": true,
  158. "explorer.fileNesting.expand": false,
  159. "explorer.fileNesting.patterns": {
  160. "*.ts": "$(capture).test.ts, $(capture).test.tsx",
  161. "*.tsx": "$(capture).test.ts, $(capture).test.tsx",
  162. "*.env": "$(capture).env.*",
  163. "README.md": "README*,CHANGELOG*,LICENSE,CNAME",
  164. "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,.gitattributes,.gitignore,.gitpod.yml,.npmrc,.browserslistrc,.node-version,.git*,.tazerc.json",
  165. "eslint.config.mjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,stylelint.config.*,.lintstagedrc.mjs,.ls-lint*",
  166. "tailwind.config.mjs": "postcss.*"
  167. },
  168. "commentTranslate.hover.enabled": true,
  169. "i18n-ally.keystyle": "nested"
  170. }