Keyboard Shortcuts
Master Longhand with keyboard shortcuts.
General
| Action | Windows/Linux | macOS | |--------|---------------|-------| | New file | Ctrl+N | Cmd+N | | Open folder | Ctrl+O | Cmd+O | | Save | Ctrl+S | Cmd+S | | Save as | Ctrl+Shift+S | Cmd+Shift+S | | Close file | Ctrl+W | Cmd+W | | Settings | Ctrl+, | Cmd+, | | Command palette | Ctrl+Shift+P | Cmd+Shift+P |
Editing
| Action | Windows/Linux | macOS | |--------|---------------|-------| | Cut | Ctrl+X | Cmd+X | | Copy | Ctrl+C | Cmd+C | | Paste | Ctrl+V | Cmd+V | | Undo | Ctrl+Z | Cmd+Z | | Redo | Ctrl+Y | Cmd+Shift+Z | | Select all | Ctrl+A | Cmd+A | | Delete line | Ctrl+Shift+K | Cmd+Shift+K | | Move line up | Alt+Up | Option+Up | | Move line down | Alt+Down | Option+Down | | Duplicate line | Ctrl+Shift+D | Cmd+Shift+D |
Find & Replace
| Action | Windows/Linux | macOS | |--------|---------------|-------| | Find | Ctrl+F | Cmd+F | | Replace | Ctrl+H | Cmd+H | | Find in files | Ctrl+Shift+F | Cmd+Shift+F | | Go to line | Ctrl+G | Cmd+G | | Quick open | Ctrl+P | Cmd+P |
View
| Action | Windows/Linux | macOS | |--------|---------------|-------| | Toggle sidebar | Ctrl+B | Cmd+B | | Toggle preview | Ctrl+\ | Cmd+\ | | Focus mode | F11 | Ctrl+Cmd+F | | Zoom in | Ctrl+= | Cmd+= | | Zoom out | Ctrl+- | Cmd+- | | Reset zoom | Ctrl+0 | Cmd+0 |
Git
| Action | Windows/Linux | macOS | |--------|---------------|-------| | Git panel | Ctrl+Shift+G | Cmd+Shift+G | | Commit | Ctrl+Enter | Cmd+Enter | | Push | Ctrl+Shift+P | Cmd+Shift+P | | Pull | Ctrl+Shift+L | Cmd+Shift+L | | View history | Ctrl+Shift+H | Cmd+Shift+H |
AI
| Action | Windows/Linux | macOS | |--------|---------------|-------| | AI suggestion | Ctrl+Space | Cmd+Space | | AI actions | Ctrl+. | Cmd+. | | AI panel | Ctrl+Shift+A | Cmd+Shift+A |