Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Prompt Context KitNew to Visual Studio Code? Get it now.
Prompt Context Kit

Prompt Context Kit

ActiveClientMods

|
2 installs
| (0) | Free
Easily gather files and code snippets and copy them as perfectly formatted Markdown for AI prompts.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Prompt Context Kit

Gather files and code snippets from your workspace and copy them as clean, perfectly formatted Markdown — ready to paste into ChatGPT, Claude, Copilot Chat, or any other AI assistant.

Stop copying files one by one and hand-wrapping them in code fences. Prompt Context Kit lets you collect exactly the context you want, keeps it in a dedicated sidebar, and produces a single tidy Markdown document on demand.

Features

  • Add anything, fast — right-click a file (or a multi-selection of files) in the Explorer, or a highlighted region in the editor, and choose Add to Prompt Context.
  • Whole files or precise snippets — add an entire file, or capture just the lines you selected. Snippet headers record the exact line range, and the column range too when the selection doesn't span whole lines. Multi-cursor selections are added as separate snippets.
  • Folder expansion — add a folder and every text file inside it is collected recursively, automatically skipping noise like node_modules, .git, dist, and oversized files.
  • Dedicated sidebar — a tree view in its own Activity Bar container lists everything currently in your context, with a live count badge.
  • One-click cleanup — remove a single entry with the inline button on each item, or clear everything at once.
  • Always fresh — file contents are read at copy time, so unsaved edits in open editors are included exactly as you see them.
  • Clean Markdown — the output is just your files: each entry is a headed, fenced code block with the correct language hint — no title heading or item-count preamble to trim out. Content containing its own triple-backticks is wrapped in a longer fence so nothing breaks.
  • Persistent — your context is remembered per workspace between sessions.

Usage

  1. Add files or snippets
    • In the Explorer: right-click a file or folder → Add to Prompt Context.
    • In the editor: right-click → Add to Prompt Context (adds the file), or select some text and choose Add Selection to Prompt Context (adds a snippet).
  2. Review what you have collected in the Prompt Context view in the Activity Bar. Click an item to jump to its source; use the inline ✕ to remove it.
  3. Copy — click the clipboard icon in the view's title bar (or run Copy Prompt Context to Clipboard from the Command Palette). The formatted Markdown is now on your clipboard.
  4. Paste it into your AI chat of choice.
  5. Clear the context with the clear-all icon when you are done.

Commands

Command Description
Prompt Context Kit: Add to Prompt Context Add the selected file(s)/folder(s), or the active editor's file.
Prompt Context Kit: Add Selection to Prompt Context Add the current editor selection(s) as snippet(s).
Prompt Context Kit: Copy Prompt Context to Clipboard Render everything to Markdown and copy it.
Prompt Context Kit: Clear Prompt Context Remove all items (with confirmation).

Example output

Copying a whole file, a whole-line snippet, and a partial (mid-line) selection produces a clean document with no title or summary — just the files:

## `src/math.ts`

```ts
export const add = (a: number, b: number) => a + b;
```

## `src/app.ts` — lines 10-12

```ts
const total = add(1, 2);
console.log(total);
```

## `src/util.ts` — line 8:5-8:19

```ts
clamp(value, 0, 1);
```

Requirements

No external dependencies or configuration — just install and go. Works anywhere VS Code ^1.125.0 runs.

Development

This project uses Bun for all package management and scripts.

bun install          # install dependencies
bun run check-types  # type-check
bun run lint         # lint
bun run test         # compile + run the VS Code test suite
bun run package      # production bundle

Press F5 in VS Code to launch the extension in a development host.

Known Issues

  • Binary files and files larger than 512 KB are skipped when a folder is expanded.
  • Non-text files added individually will be included as raw decoded text.

Found a bug or have an idea? Please open an issue on the repository.

Release Notes

See the CHANGELOG for the full history.

1.0.0

Initial release: add files/snippets to context, sidebar tree view with inline removal, Markdown clipboard export, and per-workspace persistence.


License: MIT · Published by ActiveClientMods.

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