Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Path with LineNew to Visual Studio Code? Get it now.
Copy Path with Line

Copy Path with Line

temple-slope

|
1 install
| (0) | Free
Copy relative file path with line number to clipboard
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Path with Line

Copy relative file path with line number to clipboard.

Demo

Features

  • Copy file path with current line number: src/file.ts:10
  • Copy file path with line range (when text is selected): src/file.ts:10:25

Usage

  1. Open a file in the editor
  2. Place cursor on a line or select a range
  3. Press Shift+Alt+Cmd+L (Mac) or use Command Palette: "Copy Relative Path with Line Number"

Keybinding

Platform Shortcut
Mac Shift+Alt+Cmd+L

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft