Keyboard Shortcuts in Block Editor

Several keyboard shortcuts are available for you in WordPress visual (block) editor. These shortcuts allow you to do simple tasks without reaching for your mouse.

You can access the list of all the available shortcuts by clicking Shift + Alt + H  or ⌃ + ⌥ + H

Windows Windows

Global Shortcuts

Switch between visual editor and code editorCtrl + Shift + Alt + M
Toggle fullscreen modeCtrl + Shift + Alt + F
Open the block list viewShift + Alt + O
Show or hide the settings sidebarCtrl + Shift + ,
Navigate to the next part of the editorCtrl + `
Shift + Alt + N
Navigate to the previous part of the editorCtrl + Shift + `
Shift + Alt + P
Navigate to the nearest toolbarAlt + F10
Save your changesCtrl + S
Undo your last changesCtrl + Z
Redo your last undoCtrl + Shift + Z

Selection shortcuts

Select all text / blocks when typingCtrl + A
Clear selectionescape

Block shortcuts

Duplicate the selected block(s)Ctrl + Shift + D
Remove the selected block(s)Shift + Alt + Z
Insert a new block before the selected block(s)Ctrl + Alt + T
Insert a new block after the selected block(s)Ctrl + Alt + Y
Remove multiple selected blocksdel
backspace
Move the selected block(s) upCtrl + Shift + Alt + T
Move the selected block(s) downCtrl + Shift + Alt + Y
Change the block type after adding a new paragraph/

Text formatting

Make the selected text boldCtrl + B
Make the selected text italicCtrl + I
Convert the selected text into a linkCtrl + K
Remove a linkCtrl + Shift + K
Underline the selected textCtrl + U

Top ↑

Mac Mac

Global shortcuts

Switch between visual editor and code editor⇧ + ⌥ + ⌘ + M
Toggle fullscreen mode⇧ + ⌥ + ⌘ + F
Open the block list view⌃ + ⌥ + O
Show or hide the settings sidebar⇧ + ⌘ + ,
Navigate to the next part of the editor⌃ + `
⌃ + ⌥ + N
Navigate to the previous part of the editor⌃ + ⇧ + `
⌃ + ⌥ + P
Navigate to the nearest toolbar⌥ + F10
Save your changes⌘ + S
Undo your last changes⌘ + Z
Redo your last undo⇧ + ⌘ + Z

Selection shortcuts

Select all text / blocks when typing⌘ + A
Clear selectionescape

Block shortcuts

Duplicate the selected block(s)⇧ + ⌘ + D
Remove the selected block(s)⌃ + ⌥ + Z
Insert a new block before the selected block(s)⌥ + ⌘ + T
Insert a new block after the selected block(s)⌥ + ⌘ + Y
Remove multiple selected blocksdel
backspace
Move the selected block(s) up⇧ + ⌥ + ⌘ + T
Move the selected block(s) down⇧ + ⌥ + ⌘ + Y
Change the block type after adding a new paragraph/

Text formatting

Make the selected text bold⌘ + B
Make the selected text italic⌘ + I
Convert the selected text into a link⌘ + K
Remove a link⇧ + ⌘ + K
Underline the selected text⌘ + U

Block editor keyboard shortcuts are divided into four parts:

  1. Global shortcuts
  2. Selection shortcuts
  3. Block shortcuts
  4. Text formatting shortcuts

Top ↑

Global shortcuts Global shortcuts

Switch between visual editor and code editor

You can switch between the Visual (Block) Editor and Code editor using :

Ctrl + Shift + Alt + M or ⇧ + ⌥ + ⌘ + M

If you are on your visual editor screen

You can press Ctrl + Shift + Alt + M or ⇧ + ⌥ + ⌘ + M, the screen switches to the code editor and vice versa.

Toggle fullscreen mode

You can toggle full screen mode by pressing Ctrl + Shift + Alt + F or+ + + F

Open the block list view

You can open the block list view by pressing Shift + Alt + O or+ + O

Show or hide the settings sidebar

You can show or hide the settings sidebar by pressing Ctrl + Shift + ,  or  ⇧ + ⌘ + ,

You can navigate to the next part of the editor using two different shortcuts:

  • Windows: Ctrl + ` or Shift + Alt + N
  • Mac: ⌃ + ` or ⌃ + ⌥ + N

In the above pictures, the blue highlight shows the block which you are accessing.

You can navigate to the previous part of the editor using two different shortcuts:

  • Windows: Ctrl + Shift + ` or Shift + Alt + P
  • Mac: ⌃ + ⇧ + ` or ⌃ + ⌥ + P

You can navigate to the nearest toolbar by pressing Alt + F10 or ⌥ + F10

Save your changes

You can save your changes by pressing: Ctrl + S or ⌘ + S

Suppose you are in the visual editor and made some changes.

When you press Ctrl + S or ⌘ + S, the Save draft changes to Saved indicating that the changes you made are successfully saved.

Undo your last changes

Suppose if you typed or did something which you want to undo immediately, you can do it by pressing Ctrl + Z or ⌘ + Z

After using shortcuts:

Redo your last undo

Similarly, you can redo your last undo by pressing Ctrl + Shift + Z or ⇧ + ⌘ + Z

This brings back what you just undo.

Top ↑

Selection shortcuts Selection shortcuts

Select all text / blocks when typing

You can use these shortcuts to select text.

You can select all text when typing Ctrl + A or ⌘ + A

… and pressing again to selects all blocks.

Clear selection

You can clear the selection by pressing Esc

Top ↑

Block shortcuts Block shortcuts

These shortcuts are specific to the block which you are accessing them.

Duplicate the selected block(s)

Suppose you are typing in a block.

If you press Ctrl + Shift + D or ⇧ + ⌘ + D, the whole block is duplicated and appears just underneath the block which you were typing.

Remove the selected block(s)

You can remove the selected block(s) by pressing Shift + Alt + Z or ⌃ + ⌥ + Z

Insert a new block before the selected block(s)

You can insert a new block before the selected block(s) by pressing Ctrl + Alt + T or ⌥ + ⌘ + T

Insert a new block after the selected block(s)

You can insert a new block after the selected block(s) by pressing Ctrl + Alt + Y or ⌥ + ⌘ + Y

Remove multiple selected blocks

Suppose you have selected multiple blocks.

If you press del / backspace, all the selected blocks are removed.

Move the selected block(s) up

Suppose you have selected a block.

If you press Ctrl + Shift + Alt + T or ⇧ + ⌥ + ⌘ + T, the whole block moves one step upward.

You can use this shortcut multiple times to bring the block further upwards.

Move the selected block(s) down

Similarly, you can move the selected block(s) down by pressing Ctrl + Shift + Alt + Y or ⌥ + ⌘ + ⇧ + Y

You can use this shortcut multiple times to bring the block further downwards.

Change the block type after adding a new paragraph

Suppose you have added paragraph to a block and selected that block.

If you press / the menu to change the block type appears.

Top ↑

Text formatting Text formatting

These shortcuts can be used for formatting the text within a block.

Make the selected text bold

You can make the selected text bold by pressing Ctrl + B or ⌘ + B

Example: This is the bold text.

Make the selected text italic

You can make the selected text italic by pressing Ctrl + I or ⌘ + I

Example: This is a italic text.

You can convert the selected text into a link by pressing Ctrl + K or ⌘ + K

Example: This is link text.

Suppose you have selected a text with a link.

If you press Ctrl + Shift + K  or  ⇧ + ⌘ + K, the selected link is removed.

Underline the selected text

You can underline the selected text by pressing Ctrl + U or ⌘ + U

Example: This is underline text.

Changelog

  • Updated up to WordPress 5.7
  • Created 2021-01-31

Was this article helpful? How could it be improved?