Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VS Code Image EditorNew to Visual Studio Code? Get it now.
VS Code Image Editor

VS Code Image Editor

choihunchul

|
74 installs
| (0) | Free
Premium image editor to crop, resize, and convert images inside VS Code with clipboard paste.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Image Editor (vsimage)

Edit PNG, JPEG, WebP, and GIF images directly inside VS Code.

vsimage is a lightweight, casual image tool for development workflows: quick crop, resize, mosaic, rotate, flip, and export without leaving the editor. It is intentionally focused on everyday editing tasks rather than being a full-blown professional image editor.

It also aims to feel familiar if you already use Photoshop, with shortcuts and interactions that stay as close to that style as practical so you can work quickly without relearning basic muscle memory.

Version License

vsimage editor — marquee selection, tool rail, keyboard shortcuts

Features

  • Default image editor for png, jpg, jpeg, webp, gif (opens in vsimage on double-click)
  • Explorer / tab context menu — Edit with VS Code Image Editor (vsimage: Open with Image Editor)
  • Photoshop-style tool rail — cursor, marquee, move, crop, color picker, and related tools on the left
  • Selection pixel move (V) — drag pixels inside the marquee; confirm with Enter or Apply move (clears the source area)
  • Full-image move — press V with no marquee to move the entire canvas (marquee UI hidden)
  • Shift constrain — horizontal, vertical, or 45° diagonal while dragging marquee, moving pixels, or resizing
  • Crop — quick presets (auto, free, 1:1, 16:9, 4:3, circle) and marquee shortcuts for everyday trimming
  • Resize — width/height, scale slider (10–200%), aspect-ratio lock; stepped downscale for sharper shrinks
  • Mosaic — simple block mosaic for hiding small areas while working
  • Transform — rotate, flip, toolbar zoom, pan (H or Space + drag)
  • Zoom loupe — hold Z and drag on the image; magnified preview on the canvas + selection outline
  • Edit history — thumbnail snapshots with one-click restore
  • Save flow — dirty-state tracking, save prompt on close, untitled document support
  • Export as PNG, JPEG, or WebP with quality control
  • Clipboard — paste images in, copy edited images out (format & selection options)
  • Color picker — hold I, move over the image, click to sample; copy as HEX / RGB / RGBA / HSL / HSV / CMYK
  • Pixel rulers with zoom-aware ticks
  • Right-click menu on the canvas (copy, erase selection, flip, save, undo, reset zoom)
  • Undo for destructive edits (Cmd/Ctrl+Z)
  • i18n — English and Korean UI (follows VS Code display language)

Usage

Open an image

  1. Double-click a supported image in the Explorer — opens in vsimage (default custom editor).
  2. Or right-click the file → Edit with VS Code Image Editor.
  3. Or Command Palette → vsimage: Open with Image Editor (current file).
  4. Or Command Palette → vsimage: Create Empty Image Editor — import, drag-and-drop, or Cmd/Ctrl+V paste.

If an image already opened in another viewer, use Reopen Editor With… → VS Code Image Editor.

Workspace layout

  • Tool rail — Photoshop-style tools on the left (cursor, marquee, move, crop, color picker, …).
  • Canvas — image, rulers, scroll/zoom; floating toolbar (zoom, rotate, flip).
  • Sidebar — properties, selection info, tool options, history, save/export.
  • Hold Cmd/Ctrl on the canvas to show the keyboard shortcut overlay.

Crop & marquee

Action Input
Toggle crop mode C / M
Select all Cmd/Ctrl+A
Shrink marquee (1px per side) [
Expand marquee (1px per side) ]
Move marquee Arrow keys (Shift = 10px)
Move selection pixels V, then drag inside marquee; Shift = axis / 45°
Apply pixel move Enter or sidebar Apply move
Constrain drag / resize Shift + drag (marquee, move, resize)
Apply crop Enter or sidebar button
Auto crop to content Sidebar Auto preset
Full image ↔ trim to content Double-click inside the marquee
Erase selection Delete / Backspace (or eyedropper fill)

Zoom & navigation

Action Input
Zoom in / out + / - or toolbar
Fit viewport Cmd/Ctrl+0 or toolbar reset
View at 100% Cmd/Ctrl+1
Toggle 100% ↔ fit viewport Double-click on image when crop is off / outside the marquee
Pan H or Space + drag
Magnify region on canvas Hold Z + drag (preview panel bottom-right; Esc or release Z to exit)

When crop mode is on, double-click inside the marquee still toggles full image ↔ trim to content. Double-click outside the marquee (or with crop off) toggles zoom fit ↔ 100%.

Resize

  1. Set target width/height or use the scale slider.
  2. Click Apply Resize — image updates; sidebar shows the new pixel size at 100% scale.
  3. Large downscales use 50% stepped resizing; adjust Sharpen with the slider after Apply Resize.

After crop or resize, the resize panel reflects the current image dimensions (not cleared to zero).

Color & clipboard

  • I — live color preview; click to open format modal and copy.
  • Cmd/Ctrl+C — copy image (optional format modal).
  • Cmd/Ctrl+S — save.

Keyboard shortcuts

Shortcut Action
Cmd/Ctrl + S Save
Cmd/Ctrl + Z Undo
Cmd/Ctrl + C Copy image to clipboard
Cmd/Ctrl + A Select all (crop)
Cmd/Ctrl + 0 Fit to viewport
Cmd/Ctrl + 1 View at 100%
+ / - Zoom in / out
R / Shift + R Rotate right / left
H / Space + Drag Pan
Z (hold) + Drag Magnify area on canvas
Double-click 100% ↔ fit (no marquee / outside selection)
Double-click (in marquee) Full image ↔ trim to content
C / M Toggle crop mode / marquee tool
V Selection pixel move tool
W + Click Magic wand select (보완 중, 현재 UI에서 숨김)
I + Click Pick color
[ / ] Shrink / expand marquee (1px per side)
↑ ↓ ← → Move marquee
Shift + drag Constrain marquee, pixel move, or resize
Enter Apply crop (or confirm pixel move when move tool is active)
Del / Backspace Erase selection
Esc Cancel loupe / modals / crop modes

Install

Registry Link
VS Code Marketplace choihunchul.vsimage
Open VSX (VSCodium, etc.) choihunchul/vsimage

Search for VS Code Image Editor (publisher: choihunchul).

Development

npm install
npm run compile          # extension bundle
npm run compile-tests    # test TypeScript → out/
npm test                 # Extension Development Host integration tests (F5 environment)

Quick unit tests (feature logic and webview contracts, no VS Code runtime):

npm run test:unit

Press F5 in VS Code to launch the Extension Development Host.

Release & publish

Automated via GitHub Actions:

  • CI — push/PR to main (build, test, VSIX)
  • Publish — push a v* tag (e.g. git push origin v1.3.5); runs once per tag. GitHub Releases are optional notes only and do not trigger publish.

Release flow:

# bump version in package.json, commit, then:
git tag v1.3.5
git push origin main
git push origin v1.3.5    # triggers marketplace publish
gh release create v1.3.5 --notes "…"   # optional changelog only

Manual publish:

npm run package
npm run publish:vsce   # VS Code Marketplace
npm run publish:ovsx   # Open VSX

Secrets: VSCE_PAT (Marketplace Manage), OVSX_PAT (open-vsx.org).

Links

  • Repository: https://github.com/choihunchul/vsimage
  • Issues: https://github.com/choihunchul/vsimage/issues
  • Releases: https://github.com/choihunchul/vsimage/releases

License

MIT © choihunchul

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft