Skip to content

Code Editor

Code Editor. Edits snippets, configs, and other code-shaped objects in the vault with a genuinely capable editor: Shiki highlighting, multi-cursor, folding, diagnostics, and diffs. It opens any source-code MIME the vault hands it.

Code Editor: Editing a snippetCode Editor: Editing a snippet
Editing a snippet — Shiki highlighting and diagnostics over a collaborative buffer that is a vault object.
  • Shiki syntax highlighting with lazily loaded per-language grammars and light/dark themes.
  • Multi-cursor and select-next-occurrence, bracket matching, auto-close pairs, code folding, and word wrap.
  • Quick-open (Cmd/Ctrl+P) and a fuzzy command palette (Cmd/Ctrl+Shift+P).
  • Built-in diagnostics with inline squiggles, gutter change markers, and unified or side-by-side diffs against the saved baseline.
  • Prettier formatting for web languages, on save or on demand.
  • A collaborative Y.Text buffer on the same local-first substrate as everything else, with virtualized rendering for large files.
  • Objects — code files are vault objects too