Source formatting#
Format a cell or document#
Choose Format Cell (Ctrl+Shift+K) for the focused cell, or Format Document (Ctrl+Alt+L) for the whole note. Formatting changes source layout, which is separate from evaluating results.
Math formatting#
Formatting normalizes spacing around supported operators and arguments while preserving strings, comments, and valid directive syntax. A long call can stay multiline. Incomplete or invalid input remains editable instead of being replaced with a guessed expression.
Markdown formatting#
Formatting normalizes supported list and task spacing plus table layouts. It preserves fenced code and respects paragraph content. It does not calculate formulas or turn prose into math, so use the Markdown preview to inspect the rendered result.
Save behavior#
With Format on Save enabled, Save Note Now formats on a manual save. Background autosave does not reformat. Undo is available for formatting changes.
Formatting is disabled while a note is read-only, so return from a historical preview before editing.
Next steps: Settings · Writing Markdown