Copy Context
Copy files or folder trees into your clipboard as Markdown—ready to paste into chats, docs, or code reviews.
🚀 Usage
Explorer
- Select one or more files or folders → right-click → Copy Context
- Select a root folder → right-click → Copy Folder Structure
Editor Tab
- Right-click a tab title → Copy Context (This Tab) or … (All Open Tabs).
Paste anywhere and your Markdown snippet or tree is on the clipboard
✨ Features
📄 Copy Context
- Explorer: grab paths + syntax-highlighted code blocks
- Tabs: copy the active file or all open files at once (Unsaved buffers (Untitled) are skipped)
- Respects include/exclude globs, VS Code Explorer excludes & (opt-in)
.gitignore
Copy Context (Explorer)

Copy Context (Tabs)

📂 Copy Folder Structure
- Generates a Markdown tree of your folder’s contents
- Respects the same filters (globs, Explorer excludes,
.gitignore )
Copy Folder Structure

🔧 Settings
Setting |
Default |
Description |
copyContext.template |
// {path}\n{content} |
Markdown template for text files ({path} , {content} ). |
copyContext.excludeGlobs |
[] |
Always exclude these glob patterns (highest priority). |
copyContext.includeGlobs |
[] |
Always include these glob patterns, even if Explorer or .gitignore would skip them. |
copyContext.maxContentSize |
500000 |
Max total size (bytes) of all file contents to copy. |
copyContext.respectVSCodeExplorerExclude |
true |
Skip files/folders hidden by your VS Code files.exclude settings. |
copyContext.respectGitIgnore |
false |
Skip files matching your project’s .gitignore (opt-in). |
📜 License
This extension is released under the MIT License.
| |