Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy for ClaudeNew to Visual Studio Code? Get it now.
Copy for Claude

Copy for Claude

Yusef-Ahmed

|
1 install
| (1) | Free
Copy filename and selected line range to clipboard for use with Claude Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy for Claude

A VS Code extension that copies file references — with or without selected code — directly to your clipboard, formatted for use with Claude Code.

Features

Copy File & Lines — copies a @workspace/path/to/file.ts:line reference so Claude Code can jump straight to the location.

Copy File, Lines & Code — copies the same reference plus the selected code wrapped in a fenced code block, ready to paste into a Claude conversation.

Example output

Reference only:

@my-project/src/utils/auth.ts:42

Reference with code:

@my-project/src/utils/auth.ts:42-58

export function verifyToken(token: string): boolean {
  ...
}

Usage

Action Windows / Linux macOS
Copy reference Ctrl+Shift+C Cmd+Shift+C
Copy reference + code Ctrl+Shift+X Cmd+Shift+X

Both commands are also available in the editor right-click context menu under Copy for Claude.

Installation

Install from the VS Code Marketplace, or download the .vsix from the releases page and run:

code --install-extension copy-for-claude-*.vsix

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft