Copy file and folder references in Claude Code @-mention format directly from your IDE. Press ⌥C (Alt+C) or right-click — works in both the editor and the file tree:
Editor (line selected): @src/auth.ts#L42-68
Editor (no selection): @src/auth.ts
File tree (file): @src/components/Button.tsx
File tree (folder): @src/components/
Paste straight into Claude Code and it knows exactly which file and lines you mean.
Features
Feature
Details
File & folder paths
Copies relative path in @path format
Line selection
Adds #L42 or #L42-68 based on selection
Spaces in paths
Auto-wraps in double quotes: @"my file.ts"
Folder trailing slash
@src/components/ distinguishes folders from files
Multi-cursor
Each caret generates a separate reference
Multi-file selection
Select multiple files/folders and copy all at once
Configurable output
Trailing space, separator, and notification options
Editor context menu — Right-click in any editor → Copy Path for Claude Code. The reference includes line numbers based on your current text selection.
File tree context menu — Right-click any file or folder in the Explorer panel → Copy Path for Claude Code. Copies the relative path without line numbers.
Keyboard shortcut — Press Alt+C (⌥C on macOS). Works in both the editor and file tree; the output adapts automatically based on focus and selection.
Context
Shortcut (Windows/Linux)
Shortcut (macOS)
Behavior
Editor (no selection)
Alt+C
⌥C
Copy file path
Editor (with selection)
Alt+C
⌥C
Copy with line range
File tree
Alt+C
⌥C
Copy selected file/folder paths
Examples
Select lines 10–25 in src/components/Button.tsx, press ⌥C → @src/components/Button.tsx#L10-25
Right-click package.json in the file tree → @package.json