Enhanced paste for terminal — supports screenshots, multiple file paths, and plain text.
Features
🖼️ Paste Screenshot
Take a screenshot and press the shortcut key — the image is automatically saved as a temporary file and its path is sent to the terminal, ready to use without manually saving the file first.
📁 Paste Multiple Files
Copy files from Explorer and press the shortcut key — all file paths are sent to the terminal at once.
📋 Normal Text Paste
When the clipboard contains plain text, it is pasted normally.
Usage
Open a terminal
Take a screenshot or copy files in Explorer
Press Ctrl+Alt+V in the terminal
Settings
Setting
Default
Description
pasteEnhance.tempImageDir
%USERPROFILE%\.claude\clipTemp
Directory for temporary image files
pasteEnhance.maxCachedImages
20
Max number of cached images
Requirements
Windows only — relies on PowerShell and Windows clipboard APIs
Works with any terminal session, including Claude Code
Changelog
0.0.8
Fixed: Screenshot images could not be pasted after upgrading to PowerShell 7.6.0. Replaced GetDataObject().GetData("System.Drawing.Bitmap") with Clipboard.GetImage(), which works consistently across PowerShell 5 and all PowerShell 7 versions.
0.0.7
Improved: Removed IDE-specific references from all descriptions — the plugin works with any VS Code-compatible terminal.
优化:去除所有描述中对特定 IDE 的限定,插件适用于任意兼容 VS Code 的终端环境。
0.0.6
Fixed: Minor bug fixes.
0.0.5
Fixed: activeTerminal API returning null even when a terminal is focused — the plugin now falls back to the first available terminal, preventing silent no-op on shortcut press.
Fixed: PowerShell detection result being permanently cached on failure — when the system is busy at startup and pwsh detection times out, the bad result was cached and caused all subsequent attempts to fail. Detection is now only cached on success.
Fixed: Detection now tries pwsh then powershell sequentially (5 s timeout each) and caches only the first working one, compatible with PS5-only, PS7-only, or both environments.
Fixed: Daemon stdout pipe potentially corrupted when the integrated terminal reinitializes during startup. Spawn options now explicitly set stdio: ['pipe', 'pipe', 'pipe'] to prevent terminal handle inheritance.
Fixed: On daemon spawn failure (e.g. ENOENT), the cached PS executable is cleared so the next shortcut press re-detects correctly instead of failing permanently.
Fixed: Added proc.on('error') handler — spawn errors are now surfaced to the user instead of silently hanging.
Fixed: Daemon startup timeout extended from 8 s to 25 s — Add-Type -AssemblyName System.Windows.Forms/Drawing can take over 10 s on first load under high system load. On timeout the process is killed, all state is reset, and the user is prompted to retry.
Fixed: After a timeout the dangling daemon process was not killed, causing a second shortcut press to spawn a second PowerShell instance and corrupt global state.
Improved: Status bar shows a spinner ("Paste Enhance 启动中...") while waiting for the daemon.
0.0.4
Performance: Changed activation event to onStartupFinished — daemon pre-warms at startup, eliminating first-paste delay.
Performance: PowerShell version detection is now asynchronous, no longer blocking the main thread.
0.0.3
Added: CHANGELOG.md to display version history on Open VSX Registry.
0.0.2
Fixed: Plugin did not work on machines where PowerShell 5 execution policy was Restricted (default on new Windows installations). The daemon now starts with -ExecutionPolicy Bypass, requiring no manual configuration from the user.
Fixed: Hardcoded PowerShell 5 path replaced with dynamic detection — the plugin now prefers PowerShell 7 (pwsh) if available, falling back to PowerShell 5 (powershell).