Keyboard Shortcuts
Speed up your workflow with these editor shortcuts. On macOS, replace Ctrl with ⌘.
General
| Shortcut | Action |
|---|---|
Ctrl+K/⌘+K | Open command palette |
Ctrl+P/⌘+P | Quick file open |
Ctrl+Space/⌘+Space | Trigger autocomplete |
File
| Shortcut | Action |
|---|---|
Ctrl+S/⌘+S | Save current file |
Ctrl+Enter/⌘+Enter | Compile project |
Editing
| Shortcut | Action |
|---|---|
Ctrl+Z/⌘+Z | Undo |
Ctrl+Shift+Z/⌘+Shift+Z | Redo |
Ctrl+D/⌘+D | Select next occurrence |
Ctrl+//⌘+/ | Toggle line comment |
Ctrl+Shift+K/⌘+Shift+K | Delete line |
Alt+Up/⌥+Up | Move line up |
Alt+Down/⌥+Down | Move line down |
Tab | Indent selection |
Shift+Tab | Dedent selection |
Formatting
| Shortcut | Action |
|---|---|
Ctrl+B/⌘+B | Bold: wrap with \textbf{} |
Ctrl+I/⌘+I | Italic: wrap with \textit{} |
Ctrl+Shift+M/⌘+Shift+M | Wrap in inline math $...$ |
Search
| Shortcut | Action |
|---|---|
Ctrl+F/⌘+F | Find in file |
Ctrl+H/⌘+H | Find and replace |
Ctrl+Shift+F/⌘+Shift+F | Find in project |
Navigation
| Shortcut | Action |
|---|---|
Ctrl+L/⌘+L | Go to line |
Ctrl+Home/⌘+Up | Go to start of document |
Ctrl+End/⌘+Down | Go to end of document |