Home·Keyboard shortcuts

Notion · Turn the block into a code block

Convert

Windows · Linux

Ctrl+Shift+8

Mac

Cmd+Option+8

Converts the block into a code block. Nothing inside takes formatting, so bold and links stop working there, and the language is chosen separately at the top right of the block.

Group
Convert
Keys held
3

Anything with no binding is reached through the slash menu — type / and a few letters of the name and you get even blocks like the callout, which has no key at all.

Reading the key names

  • Keys joined by + are pressed together: Ctrl+Shift+P means hold Ctrl and Shift, then P.
  • On a Mac, Cmd is ⌘, Option is ⌥ (labelled Alt on some keyboards), Control is ⌃ and Shift is ⇧.
  • Windows Ctrl usually becomes Cmd on a Mac, but not always — this reference lists both combinations separately.
  • With a Korean, Japanese or Chinese input method active, shortcuts built on letter keys may not fire. Switch to Latin input and try again.
  • When a combination does nothing, another program has often claimed it as a global shortcut first.

Common questions

Q. What is the shortcut for Turn the block into a code block in Notion?

Converts the block into a code block. Nothing inside takes formatting, so bold and links stop working there, and the language is chosen separately at the top right of the block. It is Ctrl+Shift+8 on Windows and Cmd+Option+8 on a Mac.

Q. Is it the same on Windows and Mac?

No — Ctrl+Shift+8 on Windows, Cmd+Option+8 on a Mac.

Q. How many keys is that?

3 pressed together. The combination sits under Convert in Notion.

Shortcuts nearby