Right-click any folder in the VS Code Explorer → Paste Image from Clipboard → type a file name → saves whatever's on your clipboard (e.g. a Win+Shift+S snip) as a PNG directly into that folder.
Usage
- Take a screenshot (Win+Shift+S), which puts the image on the clipboard.
- Right-click a folder in the Explorer sidebar.
- Click Paste Image from Clipboard.
- Confirm/edit the file name.
How it works
Reads the Windows clipboard via a small PowerShell script
(System.Windows.Forms.Clipboard), Windows-only.
Install
npx @vscode/vsce package
code --install-extension paste-image-to-folder-0.0.1.vsix
Reload VS Code after installing.