Copy Paste Path
A simple Visual Studio Code extension for effortlessly copying and pasting file paths in Unix format (with forward slashes).
"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
- Extension Settings
- Release Notes
- 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.
After installation, the extension provides four commands:
- Copy Path
- Copy Paste Path
- Copy Relative Path
- 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.
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.
Visual Studio Code version 1.76.0 or higher.
Currently, there are no additional settings for this extension. It works out of the box with the provided commands.
- Initial release of Copy Paste Path.
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.
This extension is released under the MIT License.