VS Code Extension

Map your
entire workspace into one file.

Right-click any folder. Get a complete Markdown snapshot — full directory tree and every file's source code, ready to share with an AI or archive.

60+ Languages
2 MB Size limit
Free Forever
tree-mapper — output preview
What it does

Everything you need.
Nothing you don't.

Built for developers who want to give AI assistants or teammates full context about a project — fast.

📁
Full directory tree
CLI-style ├── / └── hierarchy. Directories rendered before files at every level.
📄
Language-aware code blocks
60+ file types detected automatically. Every file wrapped in a properly fenced Markdown code block.
🖱️
Right-click any folder
Snapshot any subfolder, not just the root. Works from the Explorer context menu in one click.
🚫
Smart ignore rules
.treeignore uses gitignore syntax. Auto-created on first run. Plus hardcoded exclusions for node_modules, .git, and more.
🕐
Local timestamps
Snapshot header shows your device's local time with timezone offset — e.g. UTC+6 or UTC+5:30.
🔒
Safe by default
Binary files detected by null-byte scan and skipped. Files over the size limit are excluded with a notice.

Three steps. Done.

No configuration needed to get started. Just install and right-click.

1
Install the extension
Download the .vsix from GitHub Releases and install it in VS Code via Extensions → Install from VSIX…
2
Right-click a folder
In the Explorer panel, right-click any folder and select Tree Mapper: Generate Snapshot. A progress notification appears.
3
Get your snapshot
A Markdown file is saved to .tree/yyyy-mm-dd-hh-mm-ss.md. Click Open File in the notification to view it instantly.
Output format

One file.
Complete context.

The generated Markdown is structured, readable, and ready to paste directly into any AI assistant or documentation tool.

📋
Metadata header
Timestamp, file count, and the size limit used — so every snapshot is self-documenting.
🌲
Project tree
Full directory hierarchy rendered in a code block — paste it anywhere and it just works.
📝
File contents
Every file follows with its full source in a language-tagged fenced code block for syntax highlighting.
.md .tree/2026-04-11-14-35-22.md
# Workspace Snapshot: `my-project`

> **Generated:** 2026 04 11 02:35:22 PM UTC+6
> **Files included:** 12
> **Repo size:** 2048 KB

---

## Project Tree

```
my-project/
├── src/
│   ├── extension.js
│   └── scanner.js
├── README.md
└── package.json
```

## File Contents

### `src/extension.js`

```javascript
'use strict';
const vscode = require('vscode');
// ...
```

Up and running
in 30 seconds.

1
Go to the GitHub Releases page and download the latest tree-mapper-x.x.x.vsix file.
2
Open the Extensions panel in VS Code (Ctrl+Shift+X), click the ⋯ menu at the top-right, and select Install from VSIX…
3
Browse to the downloaded file, select it, and reload VS Code when prompted.
1
Go to the GitHub Releases page and download the latest tree-mapper-x.x.x.vsix file.
2
Run in terminal:
code --install-extension tree-mapper-x.x.x.vsix
1
Go to the GitHub Releases page and download the latest tree-mapper-x.x.x.vsix file.
2
Installing a newer version over the current one automatically replaces it — no need to uninstall first. Just repeat the install steps.
Configuration

Settings

Open VS Code Settings (Ctrl+,) and search for Tree Mapper to configure these options.

Setting Default Description
treemapper.additionalIgnorePatterns [] Extra glob patterns to exclude, in addition to .treeignore. Useful for project-agnostic ignores like *.lock.
treemapper.maxFileSizeKB 2048 Files larger than this value (in KB) are skipped. Default is 2 MB. Lower it to speed up snapshots on large projects.

Ready to snapshot
your workspace?

Free, open-source, and takes 30 seconds to install. No Marketplace account needed.

↓ Download .vsix GitHub View on GitHub