Zettlr LogoZettlr Documentation
Setup
Troubleshooting
FAQ
  • About Zettlr
  • Download Zettlr
  • GitHub
  • English
  • Español
  • Deutsch
  • Français
  • Italiano
  • 日本語
  • Português
  • Русский
Setup
Troubleshooting
FAQ
  • About Zettlr
  • Download Zettlr
  • GitHub
  • English
  • Español
  • Deutsch
  • Français
  • Italiano
  • 日本語
  • Português
  • Русский
  • Welcome
  • Getting started

    • Setup
    • Migrating from Obsidian
    • Migrating to a New Computer
    • Installing LaTeX
    • A Note on Security
    • Get involved
    • Troubleshooting
  • First Time Users

    • First Steps
    • Workspaces
    • Creating Files and Folders
    • Writing Markdown
    • Importing Word- and other Documents into Zettlr
    • Exporting Files
  • Interface

    • File Manager
      • Workspaces and Root Files
      • Choosing Which Files To Display
      • File Manager Appearance (Modes)
      • The File List
      • Properties
      • Filtering
      • Global Search
      • Projects
    • Split View
      • Document Tab Bar
      • Markdown Editor
      • Code Editor
      • Image Viewer
      • PDF Viewer
    • Sidebar
      • Table of Contents
      • References
      • Related Files
      • Other Files
  • Writing

    • Markdown Editor
      • Markdown Compendium
      • Appearance
      • Search
      • Autocomplete
      • Footnotes
      • Citations
      • Working With Comments
      • Status Bar
      • Table Editor
      • Text Transforms
      • Snippets
      • YAML Front Matter
    • Language & Style
      • Spellchecking
      • LanguageTool
      • Markdown Syntax
      • Autocorrect and Magic Quotes
      • Readability
    • Scientific & Technical
      • Math
      • Code Blocks
      • Mermaid Diagrams
      • Pomodoro Timer
      • Writing Statistics
    • Exporting
      • Exporting Workflow
      • Defaults Files (Profiles)
      • Selecting the PDF Engine
      • Assets Manager
      • Custom Templates and Reference Documents
      • Custom Commands
      • Printing and Previewing
      • Lua Filters
    • PKMS & Zettelkasten
      • The Zettelkasten method
      • Graph View
      • Tag Manager
  • Guides
    • Custom CSS
    • Reference Manager Integration
    • Setting up LanguageTool locally
    • Presentations
    • Submitting to a Journal using a LaTeX Template
    • Zettlr as a Portable App
  • Reference
    • Keyboard Shortcuts
    • Settings
    • Frequently Asked Questions

Keyboard Shortcuts

Keyboard Shortcuts

This page contains a list of all shortcuts available throughout the app.

Note

The key Cmd/Ctrl should be interpreted as follows: If you're on macOS, press the Cmd key. On any other platform, press Ctrl.

Custom Shortcuts

While the shortcuts shown below are defaults that will work out of the box, it's also possible to apply custom keyboard shortcuts in Zettlr and to apply shortcuts to frequently-used actions actions that have no default keystroke. For instance, if you frequently use a text transform like "Straighten Quotes" or "Remove Line Breaks", you can apply a shortcut to speed up your work.

To add a custom keyboard shortcut, open the Preferences dialogue, then browse to the Shortcuts option. There you will find a list of different areas of the app to which you can apply your shortcuts (at present: the table editor, the text transforms menu, and the broader application interface). Within these, locate the particular action to which you'd like to apply a shortcut. If a shortcut for that action exists, it will appear in gray hint text in the form field below. To change the shortcut, simply click in the form field beneath the action you're interested in. Once the form field comes into focus, the hint text will change to read "Recording…" and Zettlr will listen for the keyboard shortcut you wish to apply. At this point, simply type the keyboard shortcut you wish to use for that action. You're done.

If you decide you don't like a shortcut you've applied, you can simply return to the Shortcuts preference section and click the "Reset" button to the right of the shortcut.

App-wide shortcuts

These shortcuts are available across the entire app.

ShortcutDescription
Cmd/Ctrl+,Open preferences
Cmd/Ctrl+Alt+,Open asset manager
Cmd/Ctrl+QQuit Zettlr
Cmd/Ctrl+NNew file
Cmd/Ctrl+Shift+NNew window
Cmd/Ctrl+OOpen new workspace
Cmd/Ctrl+SSave file
Cmd/Ctrl+EExport
Cmd/Ctrl+PPrint
Cmd/Ctrl+Shift+TFocus file manager — activates arrow key navigation and type-to-filter
Cmd/Ctrl+Alt+LToggle dark mode
Cmd/Ctrl+Alt+SToggle file metadata
Cmd/Ctrl+!Toggle file manager
Cmd/Ctrl+Shift+0Toggle sidebar
Cmd/Ctrl++Zoom in
Cmd/Ctrl+-Zoom out
Cmd/Ctrl+0Reset zoom
Ctrl+Tab (macOS)Next tab
Alt+Tab (Win/Linux)Next tab
Ctrl+Shift+Tab (macOS)Previous tab
Alt+Shift+Tab (Win/Linux)Previous tab
Cmd/Ctrl+WClose current tab
Cmd/Ctrl+Shift+WClose current window
F1Open this documentation

Shared Editor shortcuts

These shortcuts work when editing both Markdown files and code files.

ShortcutDescription
Tab, Cmd/Ctrl+[Indent selection
Cmd/Ctrl+Alt+\Indent selection
Shift+Tab, Cmd/Ctrl+]Unindent selection
←, →, ↑, ↓Move the cursor by one character or line
Ctrl+←, Ctrl+→ (Win/Linux)Move cursor to the next/previous syntactic element, or by one group of word- or non-word characters
Alt+←, Alt+→ (macOS)Move cursor to the next/previous syntactic element, or by one group of word- or non-word characters
Cmd+←, Cmd+→ (macOS)Move the cursor to the beginning or end of the current line
Home, EndMove the cursor to the beginning or end of the current line
Ctrl+↑, Ctrl+↓Move the cursor by one page
PageUp, PageDownMove the cursor by one page
Cmd+↑, Cmd+↓ (macOS)Move cursor to the beginning or end of the document
Ctrl+Home, Ctrl+End (Win/Linux)Move cursor to the beginning or end of the document
EnterInsert a new line and indent according to context
Cmd/Ctrl+ASelect all text
Cmd/Ctrl+CCopy
Cmd/Ctrl+VPaste
Cmd/Ctrl+XCut. Cuts the entire line if nothing is selected
Backspace, DeleteDelete character before or after the cursor
BackspaceIf there is a pair of brackets surrounding the cursor, delete both
Ctrl+Backspace, Ctrl+Delete (Win/Linux)Delete a group of word- or non-word characters before or after the cursor
Alt+Backspace, Alt+Delete (macOS)Delete a group of word- or non-word characters before or after the cursor
Cmd+Backspace, Cmd+Delete (macOS)Delete the entire line before or after the cursor
Ctrl+B (macOS)Move cursor to the left
Ctrl+F (macOS)Move cursor to the right
Ctrl+P (macOS)Move cursor up
Ctrl+N (macOS)Move cursor down
Ctrl+A (macOS)Move cursor to the beginning of the line
Ctrl+E (macOS)Move cursor to the end of the line
Ctrl+D (macOS)Delete character after the cursor
Ctrl+H (macOS)Delete character before the cursor
Ctrl+K (macOS)Delete the line after the cursor
Ctrl+Alt+H (macOS)Delete a group of word- or non-word characters
Ctrl+O (macOS)Split the line at the cursor
Ctrl+T (macOS)Transpose the chars before and after the cursor
Ctrl+V (macOS)Move the cursor one page down
Alt+↑, Alt+↓Move the current line up or down
Shift+Alt+↑, Shift+Alt+↓Duplicate the current line up or down
EscapeRemove all selections, keeping only one cursor. If there is only one cursor, pressing Escape allows you to use Tab to focus out of the editor
Cmd/Ctrl+EnterInsert a new line, but without continuing syntactic elements such as lists
Alt+L (Win/Linux)Select the current line
Ctrl+L (macOS)Select the current line
Cmd/Ctrl+Shift+KDelete the current line
Cmd/Ctrl+Shift+\If the cursor touches a bracket, move to the matching bracket
Cmd/Ctrl+\Toggle comment
Alt+A (Win/Linux)Toggle a block-comment
Ctrl+M (Win/Linux)Toggle whether Tab can be used to tab away from the editor
Shift+Alt+M (macOS)Toggle whether Tab can be used to tab away from the editor
Cmd/Ctrl+FOpen search panel
F3, Shift+F3Find next or previous match
Cmd/Ctrl+GFind next match
Cmd/Ctrl+Shift+GFind previous match
EscapeClose search panel
Cmd/Ctrl+Shift+LSelect all instances of the currently selected text
Cmd/Ctrl+Alt+GGo to line
Cmd/Ctrl+DSelect the next occurrence of the currently selected text, or select the word under the cursor
Cmd/Ctrl+ZUndo
Cmd/Ctrl+Shift+ZRedo
Cmd/Ctrl+UUndo selection
Alt+U (Win/Linux)Redo selection
Cmd+Shift+U (macOS)Redo selection

Markdown-specific shortcuts

These shortcuts work when editing Markdown files.

ShortcutDescription
Cmd/Ctrl+BBold
Cmd/Ctrl+IItalic
Cmd/Ctrl+Shift+HHighlight Text
Cmd/Ctrl+KInsert link
Cmd/Ctrl+Shift+IInsert image
Cmd/Ctrl+TCreate task-list
Cmd/Ctrl+Alt+FCreate Footnote
Cmd/Ctrl+Shift+CToggle comment
Cmd/Ctrl+Alt+CCopy with formatting
Cmd/Ctrl+VPaste with formatting
Cmd/Ctrl+Shift+VPaste as plain
Cmd/Ctrl+LInsert Zettelkasten ID
Cmd/Ctrl+Shift+LCopy current Zettelkasten ID

Autocomplete and AutoCorrect shortcuts

These shortcuts work when an autocomplete prompt is open, and when autocompleting.

ShortcutDescription
EscapeClose the autocomplete panel
↑, ↓Select next/previous suggestion
PageUp, PageDownMove selected suggestion by a page
Enter, TabAccept Completion
BackspaceIf there is a smart quote in front of the cursor, replace it with a regular quote.
Space, EnterAuto-replace if the text in front of the cursor matches a replacement pattern

Snippet shortcuts

These shortcuts work while you are inserting a snippet with tab stops.

ShortcutDescription
TabGo to the next tab stop
EscStop snippet insertion process

Code-specific shortcuts

These shortcuts work while editing code files.

ShortcutDescription
Cmd/Ctrl+ISelect the parent syntactic element

Debug-Mode

These shortcuts work when the debug mode is active.

ShortcutDescription
Cmd+Alt+I (macOS)Open DevTools
Ctrl+Shift+I (Win/Linux)Open DevTools
Cmd/Ctrl+Alt+Shift+LOpen logs
F5Reload window

Table editor shortcuts

These shortcuts work while in Markdown tables.

ShortcutDescription
TabMove to the next cell (Shift for previous cell)
EnterMove to the next row (Shift for previous row)
Alt+Shift+ArrowUp
(macOS: Ctrl+Shift+ArrowUp)
Add a row before the current one
Alt+ArrowUp
(macOS: Ctrl+ArrowUp)
Swap the current row with the previous one
Alt+Shift+ArrowDown
(macOS: Ctrl+Shift+ArrowDown)
Add a row after the current one
Alt+ArrowDown
(macOS: Ctrl+ArrowDown)
Swap the current row with the next one
Alt+Shift+ArrowRight
(macOS: Ctrl+Shift+ArrowRight)
Add a new column to the right of the current one
Alt+ArrowRight
(macOS: Ctrl+ArrowRight)
Swap the current column with the next one
Alt+Shift+ArrowLeft
(macOS: Ctrl+Shift+ArrowLeft)
Add a new column to the left of the current one
Alt+ArrowLeft
(macOS: Ctrl+ArrowLeft)
Swap the current column with the previous one
Shift+Cmd/Ctrl+KDelete the current column
Cmd/Ctrl+BackspaceClears out the current column (i.e., inserts whitespace)
Shift+Cmd/Ctrl+BackspaceClears out the current row (i.e., inserts whitespace)
Alt+Shift+Cmd/Ctrl+BackspaceClears out the entire table
Ctrl+CAligns the current column center
Ctrl+LAligns the current column left
Ctrl+RAligns the current column right
Cmd/Ctrl+Shift+AAligns the table at the main selection head (not left/right/center, but adds the appropriate padding so that it is formatted nicely. Requires a monospaced font for proper visuals.)
Edit on GitHub
Last update: 8/4/26, 2:35 PM
Contributors: Hendrik Erz, Jeff George, TheAlmightyDada, fxjkhr, Casey Watts, Eren Inan Canpolat, Yngve Høiseth, aksh1618, Ignacio Heredia, biva, wideaperture, Yuenkari, Ivan
Prev
Reference
Next
Settings
© 2017-2026 by Zettlr and Contributors