Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Content Grabber
Content Grabber

Content Grabber

Daniel Vaughan

|
62 installs
| (0) | Free
Copies the contents of selected files or open document tabs as Markdown, including code fences and project-relative paths. Suitable for pasting into an LLM prompt.
Download

Content Grabber

I got tired of copying and pasting code from Visual Studio into my LLM prompts, so I made this.

Copy selected files or open documents from Visual Studio as Markdown, ready for sharing or pasting into an LLM prompt.

Content Grabber is a lightweight Visual Studio extension that copies the contents of one or more files and formats them as clean, structured Markdown with code fences.

New in version 1.1: Content Grabber now supports document tabs. Open the files you want to include, right-click a tab, and choose Copy All as Markdown. This makes it easy to create a deliberate selection of related documents without having to locate and select them again in Solution Explorer.

It is useful for sharing code, preparing documentation examples, creating GitHub issues, or providing several related files to an AI assistant.

✨ Features

  • Multi-file selection

    Select one or more files in Solution Explorer and copy them all at once.

  • Document-tab support

    Right-click an open document tab and choose:

    • Copy as Markdown to copy that document
    • Copy All as Markdown to copy all open documents
  • Unsaved changes included

    Open documents are copied directly from the Visual Studio editor, so the Markdown includes their current contents even when they have not yet been saved.

  • Markdown formatting

    Each file is output with:

    • its file name or project-relative path
    • a fenced code block
    • an appropriate language hint, such as csharp, json, or xml
  • Project-relative paths

    Files are labelled using their logical location within the project, making it easier to understand where each file belongs.

  • Clean clipboard output

    The resulting Markdown is immediately ready to paste into:

    • ChatGPT or another LLM
    • documentation
    • GitHub issues
    • emails or messages

📋 Example Output

Services/UserService.cs:
```csharp
public class UserService
{
    public void DoSomething()
    {
        // ...
    }
}
```

appsettings.json:
```json
{
  "Logging": {
    "LogLevel": "Information"
  }
}
```

🚀 How to Use

From Solution Explorer

  1. Select one or more files in Solution Explorer
  2. Right-click the selection
  3. Choose Copy as Markdown
  4. Paste the Markdown wherever you need it

From an Open Document Tab

  1. Open the documents you want to include
  2. Right-click a document tab
  3. Choose Copy as Markdown to copy that document
  4. Alternatively, choose Copy All as Markdown to copy every open document
  5. Paste the Markdown wherever you need it

💡 Use Cases

  • Providing several related files to an AI assistant
  • Sharing code with colleagues
  • Creating documentation examples
  • Preparing code for GitHub issues
  • Sending formatted code in messages or emails
  • Reviewing the contents of multiple files together

🔒 Privacy and Safety

Content Grabber operates entirely on your machine:

  • no network calls
  • no data collection
  • no external services

Your code stays on your machine unless you choose to paste it somewhere else.

📄 Licence

Content Grabber is available under the MIT Licence.

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