VS Code Extensions
Copy Block Path

Copy Block Path

by pengkangzhen

Copy relative path with line range to clipboard, e.g. @response_letter.tex:46-47

Downloads

4

Rating

— (0)

Version

0.1.0

Last updated

Jun 08, 2026

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

  1. Place cursor or select lines in editor
  2. 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

Related extensions