All apps/CodeSnap

CodeSnap

codesnap

A pure Rust tool to generate beautiful code snapshots.

Runs as codesnap|macOS, Linux, Windows|github.com

Command form

ai-draft · 1 task · 10 fields

Render a file or a command's output to a PNG/SVG snapshot. Colours, fonts, line highlighting, image/clipboard input and the ascii type are not modelled.

Opens the form; the finished command lands at your prompt, unrun
otty gui codesnap
Create a code snapshotExample values, fixed in this page — nothing here reaches a terminal
Basic
Source file*
file
Output*
string
Line range
string
Show line numbers
--has-line-number
Advanced
Language
string
TasksEach one presets the form for one job
Snapshot a file
from_fileoutputrangehas_line_numberlanguage
ParametersOnly these flags are editable in the form
Source file
path
--from-file-f
Output
A .png or .svg path, a directory, or the word clipboard.
string
--output-oclipboard
Line range
For example 3:5, 3: or :5.
string
--range
Language
string
--language-l
Code theme
string
--code-theme
Show line numbers
boolean
--has-line-number
Window title
string
--title
Background colour
string
--background
Scale factor
integer
--scale-factor
Config file
path
--config
SourcesEvery flag above is checked against these
src
#[arg(short = 'f', long)] from_file: Option<String>, #[arg(short, long)] output: String, #[arg(long, short, num_args=1..)] execute: Vec<String>, #[arg(long)] range: Option<String>, #[arg(long, default_value = "false")] has_line_number: bool, #[arg(long, short)] language: Option<String>, #[arg(long)] cod…
manualHEAD 2026-10-27

raw.githubusercontent.com

Before it fills your prompt, Otty checks the installed codesnap against its version. A form that does not match your version is not offered.