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

Copy at Line

nguyenduy4321

|
13 installs
| (0) | Free
Adds context menu to copy file path with line number.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy at Line

VS Code extension to quickly copy file path with current line number via right-click context menu.

🖱️ Right-click context menu:

Context Menu

Features

  • Copy Path at This Line – Full absolute file path with line number
    (e.g., /home/user/project/file.ts:42)

  • Copy Relative Path at This Line – Path relative to your workspace
    (e.g., src/file.ts:42)

Both options are accessible via right-click context menu in the editor under the submenu "Copy at Line".

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