Chat Quote
A small VS Code extension that makes GitHub Copilot Chat easier to work with: it quotes text you
highlight in a chat answer into the chat input, keeping its Markdown.
Plain JavaScript with no dependencies and no build step.
Usage
Highlight part of a Copilot Chat answer and press Ctrl+Alt+Q (or run Quote Selection in
Chat). The text is added to the end of the chat input as a > blockquote, so you can ask about
that exact part of the answer.
- The quote keeps the answer's original Markdown: bold, inline code, links, lists, code blocks and
whole table rows, not just the plain text you see.
- If nothing is highlighted, the whole answer is quoted.
- If the original Markdown can't be found, the plain text is quoted and a warning is shown.
- Your clipboard is restored afterwards.
Requirements
VS Code 1.80 or later.
Limitations
Chat Quote uses internal VS Code chat commands (workbench.action.chat.copyItem,
copyFinalResponse and copyAll) to read chat answers. These are not part of the public API and
may change in a future VS Code release.
Build from source
Requires Node.js for packaging.
npx @vscode/vsce package
code --install-extension chat-quote-0.0.2.vsix
Use the .vsix file name that vsce prints, then reload VS Code.
Credits
The icon includes the chat-sparkle icon from Codicons
by Microsoft, licensed under CC BY 4.0. It was
recoloured and resized.
Trademarks
Not affiliated with or endorsed by Microsoft or GitHub. GitHub Copilot and Visual Studio Code are
trademarks of the Microsoft group of companies.
License
MIT