Skip to the main content

WordPress block editor

Switch between the visual and code editors

ShiftOptionCmdM

Mac Web app WordPress block editor

Practice this

To switch between the visual and code editors in WordPress block editor, press Ctrl + Shift + Alt + M. On a Mac, press Shift + Option + Cmd + M instead. It works in the browser version.

Where it works: Editor

Every documented variant

Variants of this shortcut
System Environment Keys
Mac Web app ShiftOptionCmdM
Windows Web app CtrlShiftAltM

Where this comes from

Keyboard shortcuts in the block editor - WordPress.org Documentation

Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.

Report a correction