A Visual Studio Code extension that helps you generate and visualize your workspace's directory structure with advanced filtering and content display options.
- Directory Structure Generation: Create a clear, textual representation of your project's directory structure in seconds
- File Content Display: Optionally show file contents below the structure with syntax highlighting (enabled via settings)
- Smart Content Handling:
- Automatic omission of large files (>50KB) with guidance messages
- Configurable content exclusion patterns
- Customizable Filters: Use flexible include/exclude patterns to control visibility
- Pattern Visibility: Show include/exclude patterns in output (default enabled)
- High Performance: Optimized for large projects with async operations
You can install Structure Generator via the Visual Studio Code Marketplace, or by searching for "Structure Generator" within the VS Code Extensions view (Ctrl+Shift+X
or Cmd+Shift+X
on macOS).
- Open the workspace/folder in VS Code
- Configure settings (optional):
- Open Settings (
Ctrl + ,
orCmd + ,
) - Navigate to Extensions > Structure Generator
- Adjust patterns, content display, and omission settings
- Open Settings (
- Open Command Palette (
Ctrl + Shift + P
/Cmd + Shift + P
) - Run
Structure Generator: Generate Project Structure
- Review generated structure with optional content
"structureGenerator.exclude": [
"node_modules", // Exclude the node_modules directory
"**/.*" // Exclude hidden files and directories
],
"structureGenerator.include": [
"src/**", // Include everything within the "src" directory
"src" // Ensure the "src" directory itself is included
]
"structureGenerator.showPatterns": true
"structureGenerator.showFileContents": false,
"structureGenerator.omitLargeFiles": true,
"structureGenerator.contentExclude": [
"**/package-lock.json",
"**/*.min.*",
"**/dist/**"
]
- showFileContents - Enable file content display (default: false)
- omitLargeFiles - Skip files >50KB (default: true)
- contentExclude - Patterns for files to exclude from content display