Keyboard Shortcuts

A complete reference. On macOS the modifier is Command. On Windows and Linux, replace Command with Control everywhere it appears.

Command palette

The palette is the fastest way to drive Slate without reaching for the mouse, so you never break flow. See Command Palette for the full reference.

KCtrlKOpen the command palette
PCtrlPOpen the palette (command-bar style)
SpaceCtrlSpaceOpen the palette
/Ctrl/Open the palette with / pre-typed for slash commands
CtrlOpen the highlighted file and keep the palette open
EscEscClear the query (press again to close the palette)

Switching views

1Ctrl1Plain-text view
2Ctrl2WYSIWYG view
3Ctrl3Reading view
\Ctrl\Toggle split (editor + preview)

Formatting

These shortcuts wrap the current selection in Markdown markers. With no selection, they insert the markers and place the cursor between them. Pressing the same shortcut on already-wrapped text removes the wrapping.

BCtrlBToggle bold
ICtrlIToggle italic
UCtrlUToggle underline
ECtrlEToggle inline code
XCtrlXToggle strikethrough
KCtrlKInsert a link (when a selection is active in the editor; otherwise opens the command palette)
1Ctrl1Set heading 1 (also 2, 3, 4, 5, 6 with the matching number)
0Ctrl0Clear heading (back to paragraph)

File operations

SCtrlSSave
SCtrlSSave As
OCtrlOOpen file
OCtrlOOpen folder (add a workspace root)
NCtrlNNew document
WCtrlWClose the current tab

Editing

ZCtrlZUndo
ZCtrlZRedo
ZCtrlYRedo (Windows-style alternative)
FCtrlFFind in document
GF3Find next
GF3Find previous
ACtrlASelect all
CtrlPrevious tab
CtrlNext tab
LCtrlLToggle the sidebar
OCtrlOToggle the outline panel
EscEscClose the find bar, slash menu, or any open overlay

Platform notes

Modifier keys differ by platform, but the rest of a shortcut is the same. Slate uses the platform's standard conventions so muscle memory from other native apps carries over.

  • macOS. Cmd is the primary modifier. Option is the second-tier modifier (used for word-by-word movement and a few power shortcuts).
  • Windows and Linux. Ctrl is the primary modifier. Alt replaces Option.
  • Function keys. Windows and Linux also accept F3 for find next and F2 for rename, since those keys are conventional in file managers there.

For platform-specific menu structures and other differences, see Platforms.