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

Ctrl1Ctrl1Plain-text view
Ctrl2Ctrl2WYSIWYG view
Ctrl3Ctrl3Reading view
\Ctrl\Toggle split (editor + preview)
ZZToggle soft wrap for the current document. See Code and Config Files for the defaults.

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
NCtrlNNew document
OCtrlOOpen file
OCtrlOOpen folder (add a workspace root)
WCtrlWClose the current tab
WCtrlWClose every open workspace folder

Editing

ZCtrlZUndo
ZCtrlZRedo
ZCtrlYRedo (Windows-style alternative)
FCtrlFFind in document
GF3Find next
GF3Find previous
ACtrlASelect all

Reading view

These work while a document is in Reading view. They scale the rendered text without changing the file on disk.

=Ctrl=Zoom in
-Ctrl-Zoom out
0Ctrl0Reset zoom to 100%
CtrlTabCtrlTabNext tab
CtrlTabCtrlTabPrevious tab
CtrlFocus the sidebar (opens it if collapsed)
CtrlFocus the outline (pins it if needed)
CtrlFocus the editor
CtrlFocus the bottom panel (terminal and tools)
F6F6Cycle focus through the visible panels (Shift+F6 reverses)
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.