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

Copy File Path with Line Number

snwfdhmp

|
5 installs
| (0) | Free
Copy path of current file with line number (makes a clickable link to file in VSCode)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-copy-filepath-with-line-number

Copy <pathToFile>:<line> to reference a specific line of code. Makes link clikable too.

Install

Click: https://marketplace.visualstudio.com/items?itemName=snwfdhmp.copy-filepath-with-line-number

Platform Shortcut Description
Windows ctrl+alt+win+c Copy path + line (relative)
Mac ctrl+alt+cmd+c Copy path + line (relative)
Window ctrl+alt+cmd+c+shift Copy path + line (absolute)
Mac ctrl+alt+cmd+c+shift Copy path + line (absolute)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft