A Visual Studio Code extension that generates a tree-like view of your project's file structure as a markdown file, perfect for documentation and AI context sharing.
Features
This extension adds a command to generate a comprehensive visual representation of your project structure:
Creates a clean tree-like view of your project files and directories
Automatically excludes common directories like .git, node_modules, .vscode, dist, and build
Outputs the result as a user-friendly markdown file (configurable name)
Directories are sorted first, followed by files, all in alphabetical order
Supports custom exclusion patterns via .structureignore file
Supports wildcard patterns for file/directory exclusion
Automatically opens the generated file after creation
Usage
Open a project folder in VSCode
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS)
Type and select "Generate Project Structure"
The extension will create a structure file in your project root and open it
Customizing Excluded Files/Directories
You can create a .structureignore file in your project root to specify additional files or directories to exclude:
# This is a comment
temp
*.log
build-*
This will exclude:
Any file or directory named "temp"
Any file with a ".log" extension
Any file or directory starting with "build-"
Extension Settings
This extension contributes the following settings:
projectStructure.outputFileName: The name of the output file (default: "structure.md")
projectStructure.defaultExcludes: Default directories and files to exclude from the structure