Keyboard shortcuts
Esc
Start typing to search...
reference
On this page

Keyboard shortcuts

These are the defaults. Every one of them can be changed in File > Settings > Bindings, which also lists the commands that have no key until you give them one.

Ctrl here means the platform's menu key: Control on Linux and Windows, Command on macOS.

Files

CommandKey
New DocumentCtrl+N
Open a fileCtrl+O
Save current fileCtrl+S
Save all filesCtrl+Shift+S
Close current fileCtrl+W
Close all filesCtrl+Shift+W

Views and panels

CommandKey
Show the Editor viewCtrl+Alt+E
Show the Author viewCtrl+Alt+A
Show the Author view beside the sourceCtrl+Alt+S
Show or hide the primary sidebarCtrl+B
Show or hide the secondary sidebarCtrl+Alt+B
Show or hide the bottom panelCtrl+J
Select DocumentAlt+1
Preview in TabCtrl+Shift+V
Preview in SplitCtrl+Alt+P

Editing

CommandKey
Undo last editCtrl+Z
Redo previous undoCtrl+Y
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
Select AllCtrl+A
IndentTab
UnindentShift+Tab

Finding and moving

CommandKey
Find in current documentCtrl+F
Replace in current documentCtrl+H
Goto line numberCtrl+G
Moves to beginning of dataCtrl+Home
Moves to end of dataCtrl+End
Moves to beginning of next wordCtrl+Right
Moves to beginning of previous wordCtrl+Left
Toggle bookmarkCtrl+M
Select BookmarkCtrl+Shift+B

Markup

CommandKey
TagCtrl+T
Repeat last TagCtrl+Shift+T
Rename an ElementCtrl+R
Expand an empty ElementCtrl+L
Add a commentCtrl+K
Insert Special CharacterCtrl+I
Select ElementCtrl+E
Select Element ContentCtrl+Shift+E
Select FragmentCtrl+Shift+Space
Goto start tagCtrl+Up
Goto end tagCtrl+Down
Goto next Attribute valueCtrl+Shift+Down
Goto previous Attribute valueCtrl+Shift+Up

Changing a key

Select File > Settings > Bindings, find the command (typing in the filter box narrows the list) and select Change…. Press the combination you want. Escape on its own cancels; Escape with a modifier is a combination like any other, so Ctrl+Escape can be bound.

Bind nothing leaves a command with no key. Reset restores one command's default, Reset all restores every default.

Only the keys you change are saved, so a command whose default improves in a later release follows the new one unless you have chosen something yourself. If you pick a key another command already uses, the editor says which.