Clipboard Image Paste
Save an image from your clipboard into a temporary .png file and paste that file path directly into VS Code.
This extension is useful when you work in terminals, CLIs, or scripts that expect an image file path instead of inline image data.
Features
- Creates a temporary image file from clipboard content.
- Inserts the image path into the active terminal (when terminal is focused) or active text editor.
- Falls back to normal paste behavior if clipboard does not contain an image.
Command
Clipboard Image Paste: Paste Clipboard Image
- Command ID:
clipboardImage.paste
Default Keybinding
Ctrl+V when terminalFocus is true
Requirements
- Windows: no extra tools required
- macOS: no extra tools required
- Linux:
xclip must be available in PATH
How It Works
The extension saves images into a temporary folder:
- Windows:
%TEMP%\vscode-clipboard-images
- macOS/Linux: OS temp directory (
$TMPDIR / /tmp)
File format:
clipboard-<timestamp>.png
Notes
- This extension does not override normal editor paste by default; the keybinding is scoped to terminal focus.
- Temporary files are not auto-cleaned by this extension.
Development
npm install
npm run compile
License
MIT
| |