Module File Searcher opens a VS Code quick-pick listing everyDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pouryazardosht/nestjs-devtools/llms.txt
Use this file to discover all available pages before exploring further.
.ts file inside the current NestJS module, grouped by file type, with instant shortcut-letter navigation. Stop hunting through the file explorer — find any service, guard, DTO, or entity in your module with two keystrokes.
Two commands
- Search from Current File
- Browse All Modules
Cmd+L Cmd+K (macOS) / Ctrl+L Ctrl+K (Windows / Linux)From any TypeScript file inside a module — even one nested deep in a subdirectory like auth/dto/ or users/strategies/ — this command:- Reads the path of the currently open file.
- Walks up the directory tree toward the workspace root, checking each directory for a
*.module.tsfile. - Once a directory containing a
*.module.tsfile is found, that directory becomes the module root. - All
.tsfiles beneath the module root are found recursively and displayed in a grouped quick-pick.
File categories
Files are grouped in the following order, matching thecategoryOrder defined in the source:
| Category | File Type | Emoji | Shortcut |
|---|---|---|---|
| Core NestJS | Service | 🛠️ | S |
| Core NestJS | Controller | 🎮 | C |
| Core NestJS | Module | 📦 | M |
| Core NestJS | Guard | 🛡️ | G |
| Core NestJS | Gateway | 🌐 | GW |
| Core NestJS | Interceptor | 🚧 | I |
| Core NestJS | Pipe | 🔧 | P |
| Core NestJS | Filter | 🧹 | F |
| Core NestJS | Resolver | 🧬 | R |
| Core NestJS | Decorator | 🎨 | D |
| Entities | Entity | 🗃️ | E |
| DTOs | DTO | 📋 | DT |
| Enums | Enum | 🎛️ | EN |
| Interfaces | Interface | 🔗 | IF |
| Other | Repository | 🗄️ | RP |
| Other | Middleware | ⚙️ | MW |
| Other | Strategy | 🧠 | ST |
| Other | Test | 🧪 | T |
.service.ts, .guard.ts, .dto.ts). Plural variants are also recognised for the following types that commonly appear in that form: guard, gateway, interceptor, pipe, filter, decorator, resolver, middleware, and strategy — so .guards.ts, .interceptors.ts, .strategies.ts, and similar are matched correctly.
Instant shortcuts
Each file entry in the quick-pick shows its shortcut letter in the description:s) directly into the quick-pick input and the matching file opens immediately — no Enter key required. The onDidChangeValue handler compares the typed value (case-insensitive) against each item’s shortcut; the first exact match triggers navigation and closes the picker.
Files whose names do not match any known NestJS suffix are shown as 📄 File in a final Other Files category and are accessible by scrolling or filtering by name.
Module root detection
For the “Search from Current File” command, the extension locates the module root with the following algorithm (fromsearchModuleFiles.ts):
- Start at the directory of the currently open file.
- Check whether that directory contains a
*.module.tsfile usingvscode.workspace.findFiles. - If not found, move to the parent directory and repeat.
- Stop when a
*.module.tsfile is found — that directory is the module root — or when the workspace root is reached without a match. - Recursively find all
.tsfiles under the module root directory, excludingnode_modules.
node_modules directories are excluded from all file searches. The
findFiles call passes "**/node_modules/**" as the exclude glob pattern,
so third-party packages never appear in the picker.File Types Reference
See all recognised NestJS file types