Generate your first structure
Open your project
Open any project folder in VS Code. Make sure you can see the file explorer in the sidebar (View > Explorer or
Ctrl+Shift+E).Right-click on a folder
In the Explorer view, right-click on any folder you want to visualize. You can also right-click on individual files.
Select 'Generate Markdown structure'
From the context menu, click on “Generate Markdown structure”. The extension will immediately start processing your folder.
Example output
When you generate a structure for a typical project folder, the output looks like this:By default, the extension uses the EmojiDashes style and excludes common directories like
node_modules, .git, dist, .next, and out.Understanding the output
The generated structure includes:- Hierarchical indentation - Shows the nesting level of each file and folder
- Visual indicators - Icons and lines that make the structure easy to read
- File and folder names - The basename of each item in your directory tree
- Markdown formatting - Wrapped in code blocks for proper rendering
What gets included
By default, the extension:- Includes: All files and folders recursively
- Excludes:
node_modules,.git,dist,.next, andoutdirectories - Respects: Your configured exclusion patterns
- Ignores:
.gitignorerules (unless you enablerespectGitignore)
Try different styles
The extension comes with 20+ visual styles. To try a different style:Open Settings
Press
Ctrl+, (Windows/Linux) or Cmd+, (macOS) to open Settings, or use the Command Palette and search for “Preferences: Open Settings”.Search for Draw Folder Structure
Type “draw folder structure” in the search bar to filter the settings.
Change the style
Click on the Style dropdown and select a different style like:
- ClassicDashes - Traditional tree structure with dashes
- MinimalistDots - Clean look with dots
- Arrows - Arrow-based hierarchy
- BoldBlocks - Bold block characters
- SparklesDesing - Decorative sparkles theme
- And 15+ more styles!
Common workflows
Adding structure to README files
- Generate the structure for your project folder
- Open your
README.mdfile - Paste the structure from your clipboard (it’s already there!)
- The structure will render perfectly in Markdown viewers
Documenting specific modules
- Right-click on a specific subfolder (e.g.,
src/components) - Generate the structure for just that module
- Include it in your module documentation
Sharing project structure
- Generate the structure for your project root
- Paste it into GitHub issues, pull requests, or team chat
- Team members see the exact folder layout instantly
Next steps
Customize exclusions
Learn how to exclude specific files and folders using glob patterns
Explore all styles
See all 20+ available visual styles and examples
Configure recursion
Control whether to generate deep or shallow structures
Use gitignore
Automatically exclude files listed in .gitignore