Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Relative Path of Active FileNew to Visual Studio Code? Get it now.
Copy Relative Path of Active File

Copy Relative Path of Active File

enochc

|
3,781 installs
| (3) | Free
Copy relative path of active file, complementing the built-in workbench.action.files.copyPathOfActiveFile
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Relative Path of Active File

A Visual Studio Code extension for copying the relative path of an active file to the clipboard.

Usage

Add something like this to your keybindings.json

{"key": "cmd+shift+c", "command": "extension.copyRelativePathOfActiveFile"}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft