⌥+⌃AltPlusCtrl

How to Format Inline Code in Notion (Ctrl+E)

Windows: Ctrl+E
Mac: Cmd+E
Select text in Notion and press Ctrl+E, or Cmd+E on a Mac. The words switch to a fixed-width typeface with a pale background behind them, sitting inline in the sentence rather than breaking out of it. Typing backticks around the phrase achieves the same result while you write. **Ctrl+E is an unusual choice and it collides with habits from elsewhere.** In most editors Ctrl+E does something entirely different — centre-align in Word, move to end of line in terminals and any application using Emacs-style key handling. Notion's assignment is its own, and the near-neighbours make it worth learning deliberately: Ctrl+B bolds, Ctrl+I italicises, Ctrl+U underlines and Ctrl+Shift+S strikes through, so code sits slightly apart from the pattern. **Inline code is not a code block, and Notion keeps them firmly separate.** Inline code is a text style applied within a paragraph, for a filename, a variable, a flag or a command name. A code block is its own block type with a language selector and syntax highlighting, created by typing three backticks or through the slash menu. A whole block wrapped around a single word interrupts the sentence it belonged to; conversely a long script squeezed into the inline style runs together into something nobody can read. **The real value is that inline code is literal.** Notion's editor interprets a lot of typed characters — asterisks, brackets, slashes and hyphens all trigger formatting or block conversions. Inside code formatting they do not. That makes it the reliable way to write about markdown syntax, to include a path with underscores, or to show a command containing characters the editor would otherwise consume. **Monospace also removes character ambiguity**, which is the practical reason to use it in documentation. Notion's body typeface renders a lowercase L and a numeral one almost identically, does much the same with a capital O beside a zero, and quietly compresses repeated spaces. For a container ID, an API key format, a file path or anything a reader will retype, that ambiguity turns into a support question. Monospace makes each character distinct. **Notion's code blocks have language highlighting; inline code does not.** A code block offers a language dropdown that colours the syntax accordingly. Inline code is one flat style with no language concept, which is correct — a single identifier has no syntax to highlight — but it does mean that when highlighting genuinely aids comprehension, a block is the right choice even for something short. **Formatting survives export, mostly.** Exporting a Notion page to Markdown turns inline code back into backticks and code blocks into fenced blocks, so the distinction round-trips cleanly. Exporting to PDF preserves the visual treatment. Copying into another application depends on what that application accepts — pasting into Slack usually preserves it, since Slack has an equivalent style, while pasting into a plain-text field gives the bare characters without the backticks. **Toggling is what the shortcut does, not just applying.** Pressing Ctrl+E on text that is already formatted as code removes the formatting, so the same keystroke handles both directions. That matters when pasting from another document brings code formatting you did not want — select and press once rather than hunting for a clear-formatting command.

Related shortcuts