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

Copy Path with Line Number

kikakugai

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

Kasoku

日本語

A VSCode extension that accelerates your development workflow with productivity-boosting features.

Features

Copy Path with Line Number

Quickly copy file paths with line numbers to your clipboard from the context menu.

  • Copy Relative Path with Line Number - Copies the relative path from workspace root

    • Example: src/index.ts:42
  • Copy Absolute Path with Line Number - Copies the absolute file path

    • Example: /path/to/project/src/index.ts:42

Usage

  1. Open any file in VSCode
  2. Place your cursor on the line you want to reference
  3. Right-click to open the context menu
  4. Select either:
    • "Copy Relative Path with Line Number"
    • "Copy Absolute Path with Line Number"

You can also access these commands via the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).

Localization

This extension supports the following languages:

  • English (default)
  • Japanese (日本語)

The UI language is automatically selected based on your VSCode language settings.

License

MIT

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