Codeshots

Paste a snippet. Get one worth posting.

Codeshots runs your code through the formatter its own community uses, colours it with the engine inside VS Code, and draws a real editor around it. What comes out is a vector.

Open the studioFree. No account.

242 languages · 13 formatters · 6 editors · PNG and SVG

Start with the code

Paste it, or type straight onto the picture. The formatter its own community uses runs here, in your browser.

It becomes a window

Traffic lights, a tab strip with real file icons, a gutter. Every part optional, every colour from the theme.

Then a whole editor

Explorer, breadcrumbs, a minimap drawn from your own tokens, a status bar on your branch. Or any of six editors.

And then it is an export

On a generated canvas, as vector. Sharp at any size, and the words inside it are still real text.

Now do it yourself

Four steps, each one the real operation. By the end you are holding an actual export rather than having watched a tour of one.

Languages
242 grammars
Themes
65, plus your own
Formatters
13 real ones
Editors
6, drawn properly
Export
PNG, WebP, JPEG, SVG
  1. Step 1 of 4: Format it, current
  2. Step 2 of 4: Choose how it reads
  3. Step 3 of 4: Decide how much editor
  4. Step 4 of 4: Take it with you

Step 1 of 4

Format it

This came out of a bundle on one line. Prettier runs here, in this tab, and reprints it properly.

or type straight onto it

It formats before it draws

Other tools photograph whatever you paste. If it arrived minified, that is what your audience sees. Codeshots reaches for the formatter the language actually uses: the real tool, compiled to WebAssembly, run here.

  • Prettier
  • Prettier (PHP)
  • Prettier (XML)
  • Prettier (Java)
  • sql-formatter
  • Ruff
  • gofmt
  • clang-format
  • StyLua
  • zig fmt
  • Taplo
  • dart format
  • rustfmt

A language with no formatter that parses it is marked highlight only and left exactly as pasted. Guessing at indentation would put something wrong in front of your readers.

retry.jsScroll, and the paste resolves into what Prettier actually returns for it.

Six editors, and they differ where editors actually differ

Not six tab shapes. Xcode has no tab bar and no icon rail: a navigator row sits across the top of its panel and a jump bar names the file. Neovim counts lines from the cursor, fills the rest of the buffer with tildes and puts the mode in its statusline. Each one was checked against its own interface.

VS Code

Activity rail, EXPLORER, accent above the active tab.

JetBrains

A navigation bar, and a tree root that shows its path.

Xcode

No rail, no tabs. A navigator row and a jump bar.

Zed

No rail. Plain text tabs over the file's path.

Sublime Text

FOLDERS, no file icons, the minimap always on.

Neovim

Relative numbers, tildes, a powerline statusline.

Canvases, generated

Every background is vector art made in the browser, so a 6× export has no pixels to run out of. Apple owns its wallpapers, so these are drawn from scratch in the same spirit. Bring your own if you prefer; the file is read in your tab and never uploaded.

The export is a vector

There is no screenshot step anywhere in this product. The picture is built as SVG from the start, so the words in it are real text: it scales to any size without softening, opens in Figma as editable type, and a 6× PNG has no pixels to run out of.

It is also why the preview and the download can never disagree here. They are the same file.

On a laptop

A shell ported from devices.css, in five finishes, with a reflection under it.

Terminal panes

Half of what developers post is output, not source. Stack a shell session under the code.

When you should not post an image at all

An image of code cannot be copied, searched, translated or read aloud by a screen reader. In a README, a blog post or documentation you control, a plain text code block beats anything on this page, and you should use one.

Where an image genuinely is the right answer, such as a feed, a slide or a message to somebody without your repo, Codeshots also gives you an embed. Same picture, but the code inside stays real text with a copy button.

Paste a snippet and see.

No account, no upload, nothing stored. A shared link carries the whole snippet inside itself.

Open the studio