Copy files or folder trees into your clipboard as Markdown—ready to paste into chats, docs, or code reviews.
-
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
- 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)
- Generates a Markdown tree of your folder’s contents
- Respects the same filters (globs, Explorer excludes,
.gitignore
)
Copy Folder Structure
Setting | Default | Description |
---|---|---|
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). |
This extension is released under the MIT License.