VS Code Extensions
C

Copy File Line Range

by wucangzhangzhiming

Copy current file relative path with selected line range, e.g. src/App.vue#L10-L20.

Downloads

15

Rating

5.0 / 5 (1)

Version

0.0.1

Last updated

Jun 05, 2026

Copy the current file relative path with the selected line range.

Example output:

src/views/user/index.vue#L120-L156

Usage

  1. Select code in VS Code.
  2. Press:
    • macOS: Cmd + Shift + L
    • Windows/Linux: Ctrl + Shift + L
  3. Paste the copied result into Codex / Cursor / Claude Code.

You can also run the command from Command Palette:

Copy File Line Range

Related extensions