105 words
1 minutes
How to Copy Responses to Clipboard in GitHub Copilot CLI【/copy】

Overview#

Want to paste Copilot’s response somewhere else, but selecting text in the terminal is… an adventure?

Long responses, weird line breaks, accidental extra whitespace — we’ve all been there. The /copy command grabs the last response cleanly in one shot.


Usage#

Run this in Copilot CLI:

/copilot> /copy

The last response from Copilot is copied to your clipboard. Just paste wherever you need it.


Great For#

  • Pasting a generated command directly into another terminal
  • Sharing a response in Slack or Teams
  • Copying output into documentation

The era of careful mouse-drag selection in the terminal is over (probably).


How to Copy Responses to Clipboard in GitHub Copilot CLI【/copy】
https://naonao-na.com/en/posts/github-copilot-cli-copy/
Author
[object Object]
Published at
2026-03-28