How to export Copilot chat from VS Code or Visual Studio (2026)

"Copilot chat" can mean two different products. GitHub Copilot Chat runs inside your code editor. Microsoft Copilot is the chat website at copilot.microsoft.com and copilot.com. They store chats in different places, so they export differently.

VS Code: export a chat session as JSON

From the VS Code documentation:

  1. Open the session in the Chat view.
  2. Open the Command Palette and run Chat: Export Chat...
  3. Choose where to save the JSON file.

VS Code: copy a chat as Markdown

Right-click a message or the chat background in the Chat view and choose Copy (one prompt or response), Copy All (the whole conversation, with thinking steps and tool calls) or Copy Final Response. Paste into a .md file. The VS Code docs warn that exports and copies can contain sensitive prompts, responses or tool output, so review them before you share.

Visual Studio

On Microsoft's Developer Community, a request to export a Copilot chat conversation is marked as shipped in Visual Studio 18.8.0 (Developer Community). We haven't tested where the command sits, so update Visual Studio and look in the Copilot Chat window's menus.

Third-party editor extensions

Some VS Code extensions export all your Copilot sessions at once by reading the chat files VS Code keeps on disk. We haven't tested them. Check what they read and where they write before you install one.

The Copilot website is different

ThreadVault (disclosure: we make it) is a Chrome extension. It works only in Chrome tabs on copilot.com and copilot.microsoft.com, plus the other chat sites it supports. It can't read GitHub Copilot Chat in VS Code or Visual Studio. If your chats are on the Copilot website, see how to export Microsoft Copilot chats to Markdown and JSON.

Chatting with Copilot in the browser? ThreadVault exports Microsoft Copilot website chats to Markdown plus JSON in one ZIP on your computer. It doesn't cover editor chats. Free for 25 threads.
Add ThreadVault to Chrome Export Copilot website chats to Markdown

Pricing

ThreadVault is free for 25 threads on this browser. Unlimited is $9 for the first 50 buyers, then $19, one-time, inside the extension. No subscription.

Related guides

Not affiliated with Microsoft or GitHub. Copilot, GitHub, Visual Studio and VS Code are trademarks of their owners. Last checked November 22, 2026 against the VS Code docs, Microsoft's Developer Community and ThreadVault 1.2.5. Questions or corrections: hello@loomwise.app.