Keyboard shortcuts
This page lists the keyboard shortcuts of the Luzbase editor. In the editor, press F1 or click Keyboard shortcuts in the toolbar to see the most common ones.
On a Mac, Cmd is the Command key (⌘) and Option is the Option key (⌥). Shortcuts cannot be changed, and there are no Vim or Emacs key bindings.
Compile, save and preview
Section titled “Compile, save and preview”| Action | Mac | Windows and Linux |
|---|---|---|
| Compile | Cmd+Enter or Cmd+Shift+Enter | Ctrl+Enter or Ctrl+Shift+Enter |
| Open the Save version dialog | Cmd+S | Ctrl+S |
| Save the version (in the Save version dialog) | Cmd+Enter | Ctrl+Enter |
| Show the cursor’s line in the PDF | Control+Option+J | Ctrl+Alt+J |
| Copy selected text in the PDF preview | Cmd+C | Ctrl+C |
| Show keyboard shortcuts | F1 | F1 |
Your work is saved as you type, so Ctrl+S does not “save the file”. It opens the dialog for saving a named version. See Save a version.
Formatting
Section titled “Formatting”These work in LaTeX files, in both the code editor and visual mode.
| Action | Inserts | Mac | Windows and Linux |
|---|---|---|---|
| Bold | \textbf{} |
Cmd+B | Ctrl+B |
| Italic | \textit{} |
Cmd+I | Ctrl+I |
| Underline | \underline{} |
Cmd+U | Ctrl+U |
| Emphasis | \emph{} |
Cmd+E | Ctrl+E |
| Strikethrough | \sout{} |
Cmd+Shift+X | Ctrl+Shift+X |
| Insert link | \href{}{} |
Cmd+K | Ctrl+K |
| Section | \section{} |
Cmd+Option+1 | Ctrl+Alt+1 |
| Subsection | \subsection{} |
Cmd+Option+2 | Ctrl+Alt+2 |
| Subsubsection | \subsubsection{} |
Cmd+Option+3 | Ctrl+Alt+3 |
| Normal text (remove heading) | Cmd+Option+0 | Ctrl+Alt+0 | |
| Numbered list | enumerate |
Cmd+Shift+7 | Ctrl+Shift+7 |
| Bulleted list | itemize |
Cmd+Shift+8 | Ctrl+Shift+8 |
| Inline math | $…$ |
Cmd+M | Ctrl+M |
| Display math | \[…\] |
Cmd+Shift+M | Ctrl+Shift+M |
Find and navigate
Section titled “Find and navigate”Find and replace work in the current file only.
| Action | Mac | Windows and Linux |
|---|---|---|
| Find | Cmd+F | Ctrl+F |
| Find and replace | Cmd+Option+F | Ctrl+Alt+F or Ctrl+H |
| Next match | Cmd+G or F3 | Ctrl+G or F3 |
| Previous match | Cmd+Shift+G or Shift+F3 | Ctrl+Shift+G or Shift+F3 |
| Go to line | Cmd+Option+G | Ctrl+Alt+G |
Jump from a \ref to its \label |
F12 | F12 |
Open an \input or \include file, or a \url or \href link |
Cmd+click | Ctrl+click |
| Next error or warning | F8 | F8 |
Inside the search panel:
| Action | Mac | Windows and Linux |
|---|---|---|
| Next / previous match | Enter / Shift+Enter | Enter / Shift+Enter |
| Replace (in the replace field) | Enter | Enter |
| Replace all | Cmd+Option+Enter | Ctrl+Alt+Enter |
| Match case | Option+C | Alt+C |
| Match whole word | Option+W | Alt+W |
| Use regular expression | Option+R | Alt+R |
| Find in selection | Option+L | Alt+L |
| Close the panel | Esc | Esc |
Editing
Section titled “Editing”| Action | Mac | Windows and Linux |
|---|---|---|
| Undo | Cmd+Z | Ctrl+Z |
| Redo | Cmd+Shift+Z or Cmd+Y | Ctrl+Shift+Z or Ctrl+Y |
Comment or uncomment lines with % |
Cmd+/ | Ctrl+/ |
| Show completions | Control+Space or Option+I | Ctrl+Space |
| Accept a completion | Enter or Tab | Enter or Tab |
| Indent / outdent (a list item, or the line) | Tab / Shift+Tab | Tab / Shift+Tab |
| Delete line | Cmd+Shift+K | Ctrl+Shift+K |
| Move line up / down | Option+↑ / Option+↓ | Alt+↑ / Alt+↓ |
| Select the next occurrence | Cmd+D | Ctrl+D |
| Select all occurrences | Cmd+Shift+L | Ctrl+Shift+L |
| Add a cursor | Cmd+click | Ctrl+click |
| Fold / unfold the block at the cursor | Cmd+Option+[ / Cmd+Option+] | Ctrl+Shift+[ / Ctrl+Shift+] |
| Fold all / unfold all | Control+Option+[ / Control+Option+] | Ctrl+Alt+[ / Ctrl+Alt+] |
| Paste the other way (see below) | Cmd+Shift+V | Ctrl+Shift+V |
Paste the other way: in visual mode, a normal paste converts formatted text (for example from a web page) to LaTeX, and this shortcut pastes plain text instead. In the code editor, a normal paste inserts plain text, and this shortcut converts formatted text to LaTeX. The browser may ask for permission to read the clipboard.
Visual mode
Section titled “Visual mode”| Action | Mac | Windows and Linux |
|---|---|---|
| New paragraph | Enter | Enter |
| Line break inside a paragraph | Shift+Enter | Shift+Enter |
| Select the document body | Cmd+A | Ctrl+A |
| Show the source of the math, figure or table at the cursor; press again when done | Option+Enter | Alt+Enter |
| Open the menu of a figure or table | Option+F10 | Alt+F10 |
| Leave a table cell or caption | Esc | Esc |
Typing shortcuts in visual mode
Section titled “Typing shortcuts in visual mode”In visual mode, some Markdown-style input turns into LaTeX as you type. Press Backspace right after to undo the conversion.
| You type | You get |
|---|---|
**text** |
\textbf{text} |
*text* or _text_ |
\emph{text} |
`text` |
\texttt{text} |
#, ## or ### then a space |
Section, subsection or subsubsection |
- or * then a space |
Bulleted list |
1. then a space |
Numbered list |
> then a space |
Quote |
$$ |
Display math \[ \] |
Resolving merge conflicts
Section titled “Resolving merge conflicts”On the page for resolving the conflicts of a pull request:
| Action | Mac | Windows and Linux |
|---|---|---|
| Next / previous conflict | N or ] / P or [ | N or ] / P or [ |
| Keep the target branch’s version | Option+1 | Alt+1 |
| Use the source branch’s version | Option+2 | Alt+2 |