Skip to content

Fralleee/copy-context

Repository files navigation

Copy Context

Visual Studio Marketplace Installs Visual Studio Marketplace Version Visual Studio Marketplace Last Updated

Copy files or folder trees into your clipboard as Markdown—ready to paste into chats, docs, or code reviews.


🚀 Usage

  1. Explorer

    • Select one or more files or folders → right-click → Copy Context
    • Select a root folder → right-click → Copy Folder Structure
  2. Editor Tab

    • Right-click a tab title → Copy Context (This Tab) or … (All Open Tabs).
  3. 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

Copy Context (Tabs)

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

copy-structure


🔧 Settings

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).

📜 License

This extension is released under the MIT License.

About

VSCode extension that lets you copy context/structure for sharing in Markdown format

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •