Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codebase Hierarchy CopierNew to Visual Studio Code? Get it now.
Codebase Hierarchy Copier

Codebase Hierarchy Copier

Abdullah Nazir .Dev

|
1 install
| (1) | Free
A VS Code extension to copy the folder hierarchy of the current workspace or a selected folder.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codebase Hierarchy Copier

A lightweight and powerful VS Code extension that instantly generates and copies a clean directory tree structure of your project or any selected folder.

Perfect for:

  • AI prompts (ChatGPT, Claude, Gemini)
  • Documentation
  • Project overviews
  • GitHub READMEs
  • Architecture discussions
  • Debugging and code reviews

✨ Features

📁 Scan Current Workspace

Quickly generate the hierarchy of the currently opened VS Code workspace.

📂 Scan Any Custom Folder

Choose any folder from your computer and generate its structure instantly.

📋 Auto Copy to Clipboard

The generated hierarchy is automatically copied to your clipboard.

🚫 Smart Ignore System

Automatically ignores unnecessary folders/files like:

node_modules
.git
dist
out
.vscode
.DS_Store

⚡ Fast Recursive Scanning

Efficiently traverses nested folders while maintaining a clean tree structure.


🖥 Sidebar Interface

Access the extension directly from the VS Code sidebar.

Buttons available:

  • Scan Current Active Workspace
  • Select & Scan Custom Folder

🚀 Command Palette Commands

Open Command Palette:

Ctrl + Shift + P

Available commands:

Copy Current Workspace Hierarchy
Select & Copy Folder Hierarchy

📌 Example Output

my-project/
├── src/
│   ├── components/
│   ├── utils/
│   └── pages/
├── public/
├── package.json
└── README.md

📦 Installation

Install directly from the VS Code Marketplace:

Marketplace

https://marketplace.visualstudio.com/items?itemName=AbdullahNazirDev.codebase-hierarchy-copier


🛠 Usage

Method 1 — Sidebar

  1. Open VS Code
  2. Open the "Hierarchy Copier" sidebar panel
  3. Click:
    • Scan Current Active Workspace
    • OR Select & Scan Custom Folder
  4. Paste the copied hierarchy anywhere

Method 2 — Command Palette

  1. Press:
Ctrl + Shift + P
  1. Run one of:
Copy Current Workspace Hierarchy

or

Select & Copy Folder Hierarchy

🔥 Best Use Cases

  • Sharing project structures with AI
  • Creating architecture documentation
  • Quickly understanding unfamiliar repositories
  • Posting clean folder trees on GitHub
  • Team collaboration
  • Technical discussions

⚙️ Upcoming Features

Planned future updates:

  • Preview before copy
  • Custom ignore patterns
  • Export to Markdown
  • Export to TXT file
  • Depth limit controls
  • Include/exclude extensions
  • One-click GitHub README insertion
  • Tree visualization improvements

🐞 Report Issues

Found a bug or want a feature?

Please open an issue on GitHub.


⭐ Support

If you find this extension useful, consider leaving a rating on the VS Code Marketplace.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft