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

Copy Paste Path

Fabrizio Nastri

|
126 installs
| (0) | Free
Copy the path to the current file to the clipboard and paste it in the current editor in Unix format (with forward slashes).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Paste Path

A simple Visual Studio Code extension for effortlessly copying and pasting file paths in Unix format (with forward slashes).

Description

"Copy Paste Path" is a Visual Studio Code extension that allows you to quickly copy the path of the current file to the clipboard and paste it into the current editor, all in Unix format (with forward slashes).

Table of Contents

  • Features
  • Usage
  • Commands
  • Requirements
  • Extension Settings
  • Release Notes
  • Contributing
  • License

Features

  • Copy the full path of the current file to the clipboard in Unix format.
  • Paste the copied path directly into the current editor.
  • Options for both absolute and relative paths from the project root.
  • Easy-to-use commands, accessible through the command palette.

Usage

After installation, the extension provides four commands:

  1. Copy Path
  2. Copy Paste Path
  3. Copy Relative Path
  4. Copy Paste Relative Path

These can be accessed by opening the command palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on macOS) and typing the desired command. The path will either be copied to the clipboard or pasted directly into your editor, depending on the command used.

Use the keyboard shortcuts settings Ctrl+Alt+P (Windows/Linux) or Cmd+Alt+P (macOS) to assign a keyboard shortcut to the desired command.

Commands

  • Copy Path: Copies the full path of the current file in Unix format to the clipboard.
  • Copy Paste Path: Copies the full path in Unix format and pastes it at the current cursor position.
  • Copy Relative Path: Copies the relative path from the project root in Unix format to the clipboard.
  • Copy Paste Relative Path: Copies the relative path from the project root in Unix format and pastes it at the current cursor position.

Requirements

Visual Studio Code version 1.76.0 or higher.

Extension Settings

Currently, there are no additional settings for this extension. It works out of the box with the provided commands.

Release Notes

0.0.1

  • Initial release of Copy Paste Path.

Contributing

Contributions are welcome! If you have suggestions for improving the extension, feel free to open an issue or submit a pull request on the GitHub repository.

License

This extension is released under the MIT License.

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