Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown Tree generatorNew to Visual Studio Code? Get it now.
Markdown Tree generator

Markdown Tree generator

Vandan Sojitra

| (0) | Free
This is simple folder structure genrator that allows you to ignore any folders that you wish
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Tree Generator

Generate a clean, README-friendly Markdown directory tree for any folder directly from Visual Studio Code.

Unlike other tree generators, Markdown Tree Generator supports a project-specific .dirtreeignore file, allowing you to exclude folders from the generated output without modifying your VS Code settings.


Features

  • 🌳 Generate a Markdown directory tree from any folder.
  • 📁 Right-click a folder in the Explorer and generate its structure.
  • 🚫 Ignore folders using a .dirtreeignore file.
  • 📄 Output is formatted as a Markdown text code block, perfect for README files.
  • 🔤 Directories are listed before files.
  • 🔠 Alphabetically sorted output.
  • 🎯 Supports ignoring:
    • Folder names anywhere in the tree
    • Specific paths relative to the selected folder

Example

Given the following project:

MyProject/
├── src/
│   ├── controllers/
│   └── models/
├── node_modules/
├── dist/
├── package.json
├── README.md
└── .dirtreeignore

.dirtreeignore

node_modules
dist

Generated output:

# Directory Tree

```text
MyProject/
├── package.json
├── README.md
└── src/
    ├── controllers/
    └── models/
```
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft