README.md
SnapCode — Paste Code from Image
Instantly extract code from any screenshot and paste it directly into VS Code using AI.
How to Use
- Open any file in VS Code
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type SnapCode and select "SnapCode: Paste Code from Image"
- On first use, enter your Anthropic API key (free at console.anthropic.com)
- Select your screenshot or photo
- Code is pasted at your cursor instantly
Features
- Works with any image format (PNG, JPG, JPEG, WEBP)
- Fixes common OCR errors automatically (l vs 1, O vs 0)
- Preserves exact indentation
- Works with all programming languages
- Right-click context menu support
- API key stored securely in VS Code settings
Getting an API Key
- Go to console.anthropic.com
- Sign up for free
- Click "API Keys" → "Create Key"
- Copy the key — SnapCode will ask for it on first use
New accounts get $5 free credits (~5,000 image scans).
Privacy & Security
- Your images are sent to Anthropic's API for processing
- Your API key is stored only in your local VS Code settings
- No data is stored or logged by SnapCode
- See Anthropic's privacy policy
| |