Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>File Explorer Expand RecursivelyNew to Visual Studio Code? Get it now.
File Explorer Expand Recursively

File Explorer Expand Recursively

MetroSoft-Application

|
105 installs
| (1) | Free
Recursively expand folder nodes in VS Code file explorer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Right-click on any folder in the VS Code file explorer
  2. Select "Expand Recursively" from the context menu
  3. All subfolders will be expanded automatically

Expand Multiple Folders

  1. Select multiple folders in the file explorer (Ctrl+click or Shift+click)
  2. Right-click on one of the selected folders
  3. Choose "Expand Recursively" to expand all selected folders

Expand All Workspace Folders

  1. Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Type "Expand Recursively" and press Enter
  3. All workspace folders will be expanded

demo

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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft