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

Copy path

myapp

|
883 installs
| (0) | 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 relative path

Marketplace Version Downloads Rating

Introduction

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

How to use

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

Image text

Telemetry data

  • By default, telemetry data collection is turned on to understand user behavior to improve this extension. To disable it, update the settings.json as below:
{
    "copyRelativeFilePath.addLeadingDot": true
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft