A Visual Studio Code extension that helps you generate and visualize your workspace's directory structure with advanced filtering and content display options.
Features
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
Installation
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).
Usage
Open the workspace/folder in VS Code
Configure settings (optional):
Open Settings (Ctrl + , or Cmd + ,)
Navigate to Extensions > Structure Generator
Adjust patterns, content display, and omission settings
Run Structure Generator: Generate Project Structure
Review generated structure with optional content
Configuration
Core Settings
"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