WordPress block editor
Switch between the visual and code editors
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
| 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.