Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Relative Path and Line NumbersNew to Visual Studio Code? Get it now.
Copy Relative Path and Line Numbers

Copy Relative Path and Line Numbers

ezforo

|
24,759 installs
| (14) | Free
Support multiple cursors. Accessible through right-clicking menu items in file explorer, tabs and main editor window.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy relative file path and line number(s) to clipboard

Support multiple cursors.

Accessible through right-clicking menu items in file explorer, tabs and main editor window.

Commands: copy-relative-path-and-line-numbers.both & copy-relative-path-and-line-numbers.path-only

Default shortcut key: ctrl+l(MacOS), alt+l(Windows/Linux)

demo

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