File Explorer Expand Recursively
Recursively expand folder nodes in the file explorer tree view.
Features
- Recursive Expansion: Recursively expands all subfolders within selected folders
- Context Menu Integration: Right-click on any folder in the explorer to expand it recursively
- Multi-Selection Support: Select multiple folders and expand them all at once
- Command Palette Support: Access the expansion feature via Command Palette
- Cancellation Support: Cancel the expansion process at any time
- High Performance: Optimized for fast expansion with minimal UI blocking
- Configurable Exclusions: Skip specified folders during expansion
Usage
Expand Single Folder
- Right-click on any folder in the VS Code file explorer
- Select "Expand Recursively" from the context menu
- All subfolders will be expanded automatically
Expand Multiple Folders
- Select multiple folders in the file explorer (Ctrl+click or Shift+click)
- Right-click on one of the selected folders
- Choose "Expand Recursively" to expand all selected folders
Expand All Workspace Folders
- Open Command Palette (
Ctrl+Shift+P or Cmd+Shift+P )
- Type "Expand Recursively" and press Enter
- All workspace folders will be expanded

Configuration
Exclude Patterns
You can configure which folders to exclude from recursive expansion:
{
"fileExplorer.expandRecursively.excludePatterns": [
"custom_folder_to_exclude",
"another_folder",
"temp*"
]
}
Pattern matching:
- Exact name matching (case-insensitive)
- Simple glob patterns with
* wildcard support
Requirements
Visual Studio Code version 1.74.0 or higher
License
Licensed under MIT
| |