Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CodesnapperNew to Visual Studio Code? Get it now.
Codesnapper

Codesnapper

TaylorsRus

| (0) | Free
Fast, keybind-driven images of your code, styled with your active theme.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codesnapper

Press a key and get an image of your code on your clipboard.

Credit

The idea for this extension belongs entirely to CodeSnap. If you want a full-featured, customizable code screenshot tool, use CodeSnap.

Codesnapper exists only to fix two problems I had with CodeSnap:

  1. No keybind. CodeSnap opens a panel and waits for you to press its shutter button. Codesnapper captures straight from the keyboard.
  2. Speed. CodeSnap has a noticeable delay between asking for a picture and getting it. Codesnapper renders without opening a webview, so the image is usually ready in 100–300 ms.

This extension is vibe coded. It was written by an AI (Claude), and I take no credit for its development.

Usage

Select some code and press Ctrl+Alt+C (Cmd+Alt+C on macOS). With nothing selected, the whole file is captured.

The image shows the code as it looks in your editor:

  • your color theme, font, font size and line height
  • bracket pair colors
  • real line numbers
  • a header with the file's icon from your icon theme and its file name

You can also run Codesnapper: Snap Code from the Command Palette or the editor's right-click menu. To change the key, search for codesnapper.snap in Keyboard Shortcuts.

Settings

Setting Default Description
codesnapper.action clipboard clipboard, save, or both
codesnapper.saveFolder ~/Pictures/Codesnapper Where saved images go
codesnapper.scale 2 Pixel density of the image
codesnapper.showHeader true Show the file icon and name
codesnapper.showLineNumbers true Show line numbers
codesnapper.realLineNumbers true Number lines as in the file instead of from 1
codesnapper.fontFamily editor font Override the font
codesnapper.fontSize editor size Override the font size

Clipboard support

  • Windows: built in.
  • macOS: built in.
  • Linux: requires wl-copy (Wayland) or xclip (X11).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft