Terminal screenshots that actually look like your terminalSelect output in the VS Code terminal, run one command, get an SVG, HTML or PNG. By default you get exactly what you were looking at. Your theme's colors, your terminal's font, your operating system's window frame. CLIsnap does not ship a single palette or font of its own, so nothing is invented and nothing needs configuring. Everything past that point is yours to change if you want to: any theme you have installed, any window frame, any size.
The same capture twice. On the left, VS Code Dark with a Windows frame. On the right, Catppuccin Macchiato with a macOS frame. Neither is a CLIsnap theme; both came from the editor. InstallSearch for CLIsnap in the Extensions view and click Install. See CHANGELOG.md. Capture and saveThis is the everyday path. One command, one dialog, done.
Give it a shortcutCLIsnap ships without one, on purpose (after several attempts to unify the shortcuts). Every combination worth having is already taken by the editor, the terminal or the desktop, and which ones are free differs between machines. Yours is the only keyboard that matters, so pick the key yourself:
The editor tells you if the key already does something else, so you find out before it costs you a shortcut you rely on rather than after.
Capture and adjustWhen you want a different theme or frame on a particular shot:
Whatever you change here is remembered, so your next capture uses it. Reset puts everything back to how the capture was taken. Capturing long outputScroll back and select as far as you want. CLIsnap captures the whole selection, not only the part on screen.
Rendering a fileSome output is too long to select. A terminal only keeps the last 1000 lines by default, so anything older is gone before you can reach it. Send it to a file instead, and render the file.
From there it behaves exactly like a terminal capture: same themes, same frames, same three formats. Color is not read from the file yet. Escape codes in a log written with
Settings
Output formatsSVG is the default and the one to reach for. It stays sharp at any size, and the text is real text, so you can open it in Inkscape or Illustrator and edit the words or recolor a line. Columns are pinned to their exact width, so tables and box drawing stay aligned even on a machine without your font. HTML gives you a single self-contained file. The text stays live, so readers can select it, search it, or hear it read out by a screen reader. PNG is rendered at 2x so it stays crisp on a high resolution display. Use it when whatever you are pasting into will not take anything else.
ThemesThe theme list is every color theme installed in your editor, not a set of themes bundled with CLIsnap. Pick any of them and the capture is recolored, so ANSI red becomes that theme's red. Colors a program picked for itself, meaning 256 color and 24 bit values, are left exactly as they were. Those were never the theme's to change. Your active theme is marked · captured in the list. Window framesThe frame around the output matches the operating system the shell is running on, so a Windows capture gets Windows caption buttons rather than macOS dots. Pick a different one in the preview, or turn the frame off entirely. The title is your terminal's own name, such as What gets captured
RequirementsVS Code 1.93 or later.
Works in Remote-SSH, WSL and container windows. The capture reads your local clipboard and saves to your local filesystem, while the frame and title follow the machine the shell is on. FootprintA 37 KB download, 81 KB installed, of which the extension itself is 43 KB and the icon 13 KB. No dependencies, no bundled runtime, no background process, no network access, nothing phoning home. Rendering happens in the extension itself. SVG and HTML are text, so they are written straight out; PNG borrows the editor's own canvas to turn one into pixels. Nothing is uploaded and nothing is tunneled anywhere. Known limitsIntegrated terminal only. Capture uses VS Code's own terminal, so a separate terminal application cannot be captured. Nothing selected means nothing captured. CLIsnap tells you rather than quietly saving whatever happened to be on your clipboard. PNG has a length limit that SVG and HTML do not. Past a few thousand lines the canvas it draws on runs out of room. Save long captures as SVG or HTML. Long captures make large files. 50,000 lines renders in under a second but produces roughly a 15 MB SVG, which is slow to open. HTML is about a third the size. AcknowledgementsSomewhat inspired by termsnap by @kushakjafry. |
