Easy copying in claude code

A friend told me about the /copy command in Claude Code, which makes it super easy to copy something from a response. Let's say you need to copy a shell command, instead of having to highlight with your mouse, and hope the line breaks are in the correct spots based on the width of your window, etc - you can just type /copy and claude will ask you what you want to copy (and give you examples).

Just an example prompt, and a response

So in the above i can just type /copy and press 3 - and i'l get the ls -la command in my clipboard