在VSCode 的 vscode/settings.json 文件中添加如下规则: ```JSON { // 控制相关文件嵌套展示   "explorer.fileNesting.enabled": true,   // 默认不展开   "explorer.fileNesting.expand": false,   // 嵌套的具体规则   "explorer.fileNesting.patterns": {     "*.ts": "$(capture).test.ts, $(capture).test.tsx",     "*.tsx": "$(capture).test.ts, $(capture).test.tsx",     "*.env": "$(capture).env.*",     "CHANGELOG.md": "CHANGELOG*",     "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc",     ".eslintrc.cjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,.stylelintrc.*" } ```