/cc · Claude Code Commands
  1. Home
  2. Conversation & context
  3. /copy

/copy[N]

Copies the last response to the clipboard; /copy 2 copies the second-to-last. With code blocks, a picker lets you copy one block; press w to write to a file instead (useful over SSH).

Best use

Claude drafted a snippet or command: /copy and paste it wherever you need it.

Related commands · Conversation & context

← See all commands