Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Relative Path with Dots (like Jetbrains IDEs)New to Visual Studio Code? Get it now.
Copy Relative Path with Dots (like Jetbrains IDEs)

Copy Relative Path with Dots (like Jetbrains IDEs)

Tugay Demirel

|
26 installs
| (0) | Free
Copy Relative Path with Dots and Line Number, like Jetbrains IDEs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Relative Path with Dots

Copies the relative path of a file using dot notation, similar to JetBrains IDEs.

Features

  • Copies file path using dots instead of slashes
  • Includes function/class name when cursor is in one
  • Adds line number for specific locations in functions
  • Available in editor and explorer context menus

Usage

Right-click in editor or on a file in explorer and select "Copy Relative Path with Dots"

Examples:

  • File path: src.components.Button
  • With function: src.components.Button.handleClick
  • With line number: src.components.Button.handleClick:23

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

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