Skip to content
Crane
Esc
  • Pages

    Home/
  • Performance/performance
  • Download/download
  • Blog/blog
  • FAQ/faq
  • Feedback/feedback
  • Download

    Download for macOS/download#macos
  • Download for Windows/download#windows
  • Download for Linux/download#linux
  • Settings

    Switch between light and dark

↑ ↓ to moveEnter to openEsc to close

Download

Edit large files and save them

Many tools can show you a large file. Crane also lets you change it and save it, with the everyday editing tools you’d expect.

Changing text · Finding your way around · Files that aren’t text · Files that change on disk · Your setup · File formats · Compressed files

Changing text

Find and replace
Plain words or regular expressions, matching case or whole words. Replace All can be undone in one step.
Tidy up lines
Sort lines, trim stray spaces, join lines and change case, without copying everything into another program and back.
Format and indent
Format Document and Format Selection run the language’s usual formatter, if it is installed, and change only the lines it touches, as one undo step. New lines indent by the language’s rules, and Reindent Lines fixes a selection or a whole file.
Folding
Fold blocks of JSON or code by their brackets or by indentation, or fold everything down to a chosen level, and open them again when you need them.

Finding your way around

Find in Files
Search all the files in a folder at once and see the results in one list, including files in UTF-16, Latin-1 and Windows-1252.
Go to a line
Jump to a line, a line and column, or a byte position that another program reported.
Bookmarks
Mark a line, jump between marks, and pick one from a list. Copy, cut or delete the bookmarked lines, or invert them. They show in the margin and on the map of the file, and come back the next time you open the file.
A map of the file
The strip along the side shows where you are in the file, with search matches, bookmarks and collapsed folds marked on it.
Split views
Split the window right or down, each part with its own tabs. Open the same file twice to read one part while you edit another.
Folders in the sidebar
Open a folder to browse it, and search it by file name. A click previews a file and a double-click opens it for editing.
Command palette
Type part of a command’s name to find it, with recent ones first. ⌘⇧P, or Ctrl+Shift+P on Windows and Linux.

Files that aren’t text

Hex view
Programs, images, archives and databases open as offsets, bytes and characters instead of being refused. It is read-only, and it reads only the rows on screen, so a file’s size doesn’t slow it down. View > Toggle Hex View switches any file between text and hex.
Search bytes
Look for hex bytes, with ?? for any byte, or for UTF-8 or UTF-16 text. Go to an offset such as 0x1f40 or +16, and copy the selection as hex, a C array, Base64 or text.
Inspector
A sidebar on the right shows what the bytes at the cursor mean as integers, floats, dates, a character and bits, in the byte order you choose.

Files that change on disk

Follow a growing log
Turn on Follow File in the View menu and Crane stays on the last line as new ones arrive. Scroll away or start typing to pause, and scroll back to the end to carry on. When a log is rotated, Crane picks up the new one.
Asks before reloading
A file that changes on disk reloads by itself, unless you have unsaved edits. Then Crane asks first.

Your setup

Shortcuts you already know
Standard keys for moving, duplicating and deleting lines, with Ctrl for ⌘ on Windows and Linux. Change any of them in Help > Keyboard Shortcuts.
Vim mode
Off by default. Turn it on in Settings if you already use Vim.
Settings in a text file
Change them in the Settings window, or in a file that’s easy to read, back up, or copy to another computer.
Picks up where you left off
Tabs, splits, cursor positions and folds come back when you start Crane again. After a crash or a forced quit, unsaved edits and untitled documents come back too.
See whitespace
Show spaces, tabs and line endings, draw indent guides, and number lines relative to the cursor, from the View menu.
Chinese, Japanese and Korean
Text typed through the system’s input method goes into the file, with the candidate window beside the cursor.
Light and dark
Follows your system’s appearance setting, or set one in the View menu.
Turn off what you don’t use
The map of the file, Find in Files, the sidebar, the hex view and compressed-file support can each be switched off in Settings, under Plugins, and the change applies after a restart.

109 languages and file formats

Crane comes with syntax highlighting for all of these, grouped here by the kind of work they come from. Others can be added as packages.

Software development
Python, JavaScript, TypeScript, Java, C, C++, C#, Objective-C, Go, Rust, Swift, Kotlin, Dart, Scala, Groovy, Zig, Ruby, PHP, Perl, Lua, R, Julia, Elixir, Erlang, Haskell, OCaml, F#, Clojure, Scheme and Racket, Common Lisp and Emacs Lisp, Fortran, Pascal and Delphi, COBOL, Ada, Prolog, Solidity, Assembly, LLVM IR, SQL, AWK, Vim script, Brainfuck, GLSL, HLSL, Metal and WGSL shaders
Web
HTML, CSS, SCSS, Less, JavaScript, TypeScript, JSON, JSON with comments, XML, GraphQL, Jinja, Handlebars, Liquid, ERB and Twig templates
System administration
Logs, Bash and other shell scripts, Fish, PowerShell, Windows batch files, systemd units, YAML, TOML, INI, .properties
Build and infrastructure
CMake, Dockerfiles, Terraform and HCL, Nix, Protocol Buffers, Apache Thrift, ignore files, diffs
Writing and documentation
Markdown, LaTeX, BibTeX, Rich Text Format, Graphviz DOT, SRT and WebVTT subtitles, gettext translations
Data analysis
CSV, TSV, JSON, SQL dumps, XML, Python, R, Julia
Bioinformatics
FASTA, FASTQ, protein FASTA, SAM alignments, VCF variants, BED intervals, GFF and GTF annotations, GenBank records, Newick trees, Snakemake files, TSV
Chemistry and structural biology
PDB, CIF and mmCIF, SDF and MOL, SMILES
Geoscience and surveying
LAS well logs, XYZ point clouds
3D printing, CAD and CNC
G-code, Wavefront OBJ models, PLY, ASCII STL, ASCII DXF
Electronics and hardware
Verilog and SystemVerilog, VHDL, KiCad, Gerber and Excellon, device trees, linker scripts
Records and interchange
EDI (X12, EDIFACT), HL7 v2, iCalendar and vCard, GEDCOM, M3U playlists

Compressed files, encodings and line endings

Compressed files
gzip and BGZF files (.gz, .bgz) open as the text they hold, without being unpacked first. You can read and search them, but not edit them.
Encodings
UTF-8, UTF-16, Latin-1 and Windows-1252. Crane works out the encoding itself and tells you when it had to guess, and you can reopen or save a file in another one.
Line endings
The status bar shows whether a file uses LF, CRLF or CR, next to its encoding. The Edit menu converts between them.

crane-editor.com/features

Public beta · v0.4