Copy file path with line numbers for Coding Agents like OpenCode.
Usage
- Open any file in the editor
- Select lines you want to reference (or nothing to copy just the path)
- Press shortcut:
| Shortcut | Action |
|---|---|
Ctrl+Shift+C / Cmd+Shift+C |
Copy relative path with line numbers |
Ctrl+Shift+Alt+C / Cmd+Shift+Alt+C |
Copy absolute path with line numbers |
Examples of copied text:
@src/utils.ts#L12-L15— multi-line selection@src/utils.ts#L12— single line selected@src/utils.ts#L5-L8,L12-L14— multiple selections merged@src/utils.ts— no selection, just file path
Settings
fileLineCopy.prefix(default@): Prefix character for the referencefileLineCopy.showNotification(defaulttrue): Show status bar notification after copying