Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy PathNew to Visual Studio Code? Get it now.
Copy Path

Copy Path

andaviaco

|
3,419 installs
| (2) | Free
Copy the relative path from the current file to the selected file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Path for Visual Studio Code

  • Copy the relative path from the current file to the selected file.
  • Copy the project path of a file or directory.

How to use

Select the file from the explorer and click on the desired option:

Example

Extension Settings

// Add ./ for relative paths pointing to the same directory.
"copyRelativeFilePath.addLeadingDot": true
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft