Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Path for Claude Code (VS Code)New to Visual Studio Code? Get it now.
Copy Path for Claude Code (VS Code)

Copy Path for Claude Code (VS Code)

teppasit

|
8 installs
| (0) | Free
VS Code extension that copies file/folder references in Claude Code @-mention format (@path/to/file#L42-68)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Path for Claude Code

VS Code extension that copies file/folder references in Claude Code @-mention format (@path/to/file#L42-68).

Features

Action Result
Copy file path @src/auth.ts
Copy folder path @src/components
Copy with line selection @src/auth.ts#L10-25
Multi-cursor @src/auth.ts#L5 @src/auth.ts#L20
Multi-file selection @src/auth.ts @src/utils.ts

Usage

Context Menu

  • Editor: Right-click → Copy Path for Claude Code
  • Explorer: Right-click file/folder → Copy Path for Claude Code

Keyboard Shortcut

Context Shortcut Behavior
Editor (no selection) Alt+C Copy file path
Editor (with selection) Alt+C Copy with line range
Explorer Alt+C Copy selected file/folder paths

Settings

Setting Type Default Description
appendTrailingSpace boolean true Append trailing space after copied reference
multipleReferencesSeparator enum Space Separator between multiple references (Space / Newline)
showNotification boolean true Show notification after copying

Settings prefix: copyPathForClaudeCode.

License

MIT

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