Source editor

The source editor with labels and citation keys completing after @
  1. Source. Switch to the source editor.
  2. Completion. Opens as you type. Ctrl Space opens it any time.

Hover a name to see what it is, or, inside a function call, its arguments. The swatch beside a color opens a color picker. The Ω button on the toolbar finds a symbol by name or meaning.

Go to definition, rename and fixes

F12Go to where a name, label or function is defined, or open the file a path names
F2Rename a name, label or function in every file. Ctrl Z undoes it in the open file only.
AltEnterQuick fixes where an error or hint is, such as creating a missing file
CtrlSpaceShow suggestions

Format Document

Format › Format Document (typstyle)… tidies the whole file. It works in the source editor only.

Keyboard shortcuts

On macOS, use Cmd for Ctrl. Select text first to wrap it.

CtrlB*bold*
CtrlI_italic_
CtrlU#underline[]
Ctrl.#super[]
CtrlShift,#sub[]
CtrlM$ $
CtrlAlt1= heading, with 2 to 6 for the levels below
CtrlDSelect the next match
CtrlAltUpAdd a cursor above
CtrlAltDownAdd a cursor below