Paste clipboard images as file paths directly into your terminal. Perfect for CLI tools like Claude Code that accept image paths but can't receive clipboard data.
- Paste images as paths - Press
Ctrl+Shift+V(orCmd+Shift+Von Mac) in the terminal to save a clipboard image and paste its path - Cross-platform - Works on Windows, macOS, and Linux
- Configurable - Choose save directory, file prefix, image format, and quote style
- Smart fallback - If no image in clipboard, performs regular paste
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X) - Search for "Clip2Path"
- Click Install
- Take a screenshot or copy an image to clipboard
- Focus on a terminal in VS Code
- Press
Ctrl+Shift+V(orCmd+Shift+Von Mac) - The image is saved and its path is pasted into the terminal
| Setting | Default | Description |
|---|---|---|
clip2path.saveDirectory |
System temp | Directory to save images |
clip2path.filePrefix |
clipboard- |
Prefix for saved files |
clip2path.imageFormat |
png |
Image format (png or jpg) |
clip2path.quoteStyle |
single |
Quote style for paths with spaces |
Requires xclip installed:
sudo apt install xclipWorks out of the box. For better performance, install pngpaste:
brew install pngpasteWorks out of the box (uses PowerShell).
CLI tools like Claude Code are powerful but can't receive images from the clipboard. This extension bridges that gap - take a screenshot, press a key, and the path is ready to use.
MIT