Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Editor support

VS Code, Cursor, Windsurf, VSCodium

The Romit extension adds syntax highlighting, snippets, a file icon, and Romit’s indentation rules (2 spaces, no tabs) for .rmt files.

  1. Download romit-<version>.vsix from the latest release.

  2. Install it:

    code --install-extension romit-0.2.0.vsix
    

    In Cursor use cursor --install-extension …. You can also use the Extensions view: ⋯ → Install from VSIX….

Type app and press Tab to start a new app. Other snippets: screen, state, button, list, foreach, if, field, toggle, picker, tabs, sidebar, action, fn, spec.

The source is in editors/vscode.

Other editors

The grammar is a standard TextMate grammar (romit.tmLanguage.json). Sublime Text, Zed, Nova, and JetBrains IDEs (through the TextMate Bundles plugin) can load it. Set your editor to indent with 2 spaces and never insert tabs.