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

Folder Structure Copier

devj-arch

|
3 installs
| (0) | Free
Copy folder structures as formatted ASCII trees — perfect for AI prompts, docs, and READMEs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Folder Structure Copier

Copy any folder's structure as a clean ASCII tree — ready to paste into AI prompts, documentation, or READMEs.

Usage

Right-click any folder in the Explorer panel and choose Copy Folder Structure:

Context menu showing Copy Folder Structure submenu

Three copy modes

Copy Full Structure — the entire recursive tree, all levels deep.

my-project/
├── src/
│   ├── components/
│   │   ├── Button.tsx
│   │   └── Modal.tsx
│   └── index.ts
├── public/
│   └── index.html
└── package.json

Copy Shallow Structure — immediate children only. Nested folders show … if they contain files.

my-project/
├── src/
│   └── …
├── public/
│   └── …
└── package.json

Copy Structure (Selective Depth) — opens a picker where you choose exactly which sub-folders to expand. Everything else stays collapsed.

Selective depth folder picker

Settings

Setting Default Description
folderStructureCopier.excludePatterns ["node_modules", ".git", "dist", …] Glob patterns to exclude
folderStructureCopier.includeRootFolderName true Show the root folder name at the top
folderStructureCopier.showFileIcons false Prefix entries with 📁 / 📄 emoji
folderStructureCopier.sortFoldersFirst true List folders before files at each level

Customising exclude patterns

"folderStructureCopier.excludePatterns": [
  "node_modules",
  ".git",
  "dist",
  "*.log",
  ".env*",
  "coverage"
]

Tips

  • For AI prompts: Use Full Structure for small projects; Selective Depth for large monorepos to keep context concise.
  • For documentation: Shallow Structure gives a clean top-level overview.
  • Selective Depth: Picking a deeply nested folder automatically includes all its parent folders so the tree stays connected.

Issues & Feedback

Found a bug or have a feature request? Open an issue on GitHub.

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