Copy the current file's relative path with line number(s) to clipboard.
Output format
| Situation | Output |
|---|---|
| Cursor on line 46 | @response_letter.tex:46 |
| Select lines 46–47 | @response_letter.tex:46-47 |
Usage
- Place cursor or select lines in editor
- Right-click → Copy Block Path (@file:line), or use the shortcut
Keybinding
| OS | Shortcut |
|---|---|
| macOS | ⌘⇧⌥C |
| Windows/Linux | Ctrl+Shift+Alt+C |
Install from VSIX
code --install-extension copy-block-path-0.1.0.vsix