Instantly paste images from clipboard into markdown files with automatic saving, HEIC conversion, and smart file management. Perfect for documentation, blogs, and note-taking workflows.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A VS Code extension that automatically handles pasting images from the clipboard into markdown files. When you press Ctrl+V (or Cmd+V on Mac) with an image in your clipboard, it will:
Save the image as a file in your specified directory
Insert the appropriate markdown syntax with the correct path
Handle HEIC format conversion automatically
Provide smart duplicate filename handling
Features
Smart Paste Detection: Automatically detects when you're pasting an image vs text
HEIC Support: Automatically converts Apple HEIC format to your preferred format
Configurable Image Directory: Save images to a custom directory (default: ./images)
Multiple Insert Modes: Choose between markdown, HTML, or path-only insertion
Cross-platform: Works on Windows, macOS, and Linux
Customizable Naming: Configure image file naming patterns with duplicate handling
Image Optimization: Built-in compression and format conversion using Sharp
Alt Text Support: Optional prompting for accessibility-friendly alt text
Quality Control: Adjustable image quality for JPEG/WebP formats
Usage
Copy an image to your clipboard (screenshot, image from browser, etc.)
Open a markdown file in VS Code
Press Ctrl+V (or Cmd+V on Mac) where you want to insert the image
The extension will save the image and insert the markdown syntax automatically
Configuration
Access settings via File > Preferences > Settings and search for "Paste Image MD":
clipboardImagePaste.imageDirectory
Default: "./images"
Description: Directory to save pasted images (relative to workspace root or absolute path)