Right-click any folder. Tree Mapper captures the full directory tree and every file's source into a single Markdown file — instantly ready for any AI assistant.
CLI-style ├── / └── hierarchy. Directories rendered before files at every level, exactly as you'd see in a terminal.
60+ file types detected. Every file wrapped in a properly fenced, syntax-tagged code block.
Configure ignore patterns via VS Code Settings (treemapper.defaultIgnorePatterns). node_modules, .git, and binaries are always skipped.
Right-click any Explorer folder, or Ctrl+Shift+P → Tree Mapper: Generate Snapshot for the workspace root.
Detects .git and automatically adds .tree/ to .gitignore — zero duplicates, zero config.
Binary files skipped via null-byte scan. Files over the size limit are excluded with a clear notice in the snapshot header.
Choose exactly which files to include — a full interactive picker opens inside VS Code, with checkboxes for every file, live search/filter, and folder auto-collapse for excluded directories. You decide what goes into the snapshot.
A persistent "Tree Mapper" entry in VS Code's status bar shows live scan state — scanning, ignored count, generating — and acts as a one-click shortcut to run the command at any time.
Every snapshot includes an Est. token count — know exactly how much LLM context your snapshot will consume before pasting it into any AI.
The picker remembers your last file selection per workspace. Hit Restore last to instantly reload your previous choices — no re-checking files on every run.
Keeps only the N most recent snapshots in .tree/ — oldest deleted automatically. Configurable via keepLastSnapshots. Default: 10.
Every snapshot has a Workspace Tree (full repo) and a Snapshot Tree (only selected files) — two clear reference points in one file.
Click Install in VS Code — opens the extension panel in your editor, ready in one click.
In Explorer, right-click any folder → Tree Mapper: Generate Snapshot. Pick your files.
A Markdown file is saved to .tree/yyyy-mm-dd.md. Open it, share it, paste it into any AI.
Get started in under 30 seconds
No account. No config. Zero friction.
Timestamp, file count, skipped files, excluded files, total repo size, and estimated token count — every snapshot is fully self-documenting.
Two tree sections: Workspace Tree (the full repo minus ignored paths) and Snapshot Tree (only the files you selected) — paste either anywhere.
Every selected file follows with its full source in a language-tagged fenced code block for syntax highlighting.
Binary or oversized files listed by name with their skip reason — nothing is silently dropped.
# Workspace Snapshot: `my-project` --- ## Workspace Tree ``` my-project/ ├── src/ │ ├── extension.js │ └── scanner.js ├── README.md └── package.json ``` ## Snapshot Tree ``` my-project/ └── src/ ├── extension.js └── scanner.js ``` ## File Contents ### `src/extension.js` ```javascript 'use strict'; const vscode = require('vscode'); // ... ``` ## Skipped Files
Open VS Code Settings (Ctrl+,) and search Tree Mapper.
treemapper.defaultIgnorePatterns["node_modules/", ".git/", ...].tree/ directory is always excluded.treemapper.maxFileSizeKB2048treemapper.keepLastSnapshots10.tree/ folder. Oldest are deleted automatically after each run.Free forever · MIT · Open source
Takes 30 seconds to install. Works on every project, every time.