Cheat sheet · Updated
Essential Code Editor and Terminal Shortcuts for Developers
The ten most-used shortcuts of VS Code, Zed and Warp, side by side for Mac and Windows, from each tool's own documentation.
Developers switch tools constantly: an editor, a terminal, a database client, a Git UI. Each has its own muscle memory, and the cost of context-switching is real. The shortcuts that pay first are the ones that let you reach everything without the mouse.
The ten to learn first, side by side
Visual Studio Code
- Show Command Palette⌘⇧P
- Quick Open File⌘P
- Find⌘F
- Save⌘S
- Cut Line⌘X
- Copy Line⌘C
- Move Line Up⌥↑
- Move Line Down⌥↓
- Toggle Line Comment⌘/
- Format Document⇧⌥F
- Show Command PaletteCtrlShiftP
- Quick Open FileCtrlP
- FindCtrlF
- SaveCtrlS
- Cut LineCtrlX
- Copy LineCtrlC
- Move Line UpAltUP
- Move Line DownAltDOWN
- Toggle Line CommentCtrl/
- Format DocumentShiftAltF
Zed
- Command Palette⌘⇧P
- File Finder⌘P
- Save⌘S
- Undo⌘Z
- Find in Buffer⌘F
- New File⌘N
- Redo⌘⇧Z
- Toggle Comments⌘/
- Select Next Occurrence⌘D
- Go to DefinitionF12
- Command PaletteCtrlShiftP
- File FinderCtrlP
- SaveCtrlS
- UndoCtrlZ
- Find in BufferCtrlF
- New FileCtrlN
- RedoCtrlShiftZ
- Toggle CommentsCtrl/
- Select Next OccurrenceCtrlD
- Go to DefinitionF12
Warp
- Split Pane Right⌘D
- Launch Configuration Palette⌃⌘L
- Open Theme Picker⌃⌘T
- Command Search⌃R
- Workflows⌃⇧R
- Generate⌃`
- Select the Closest Bookmark Down⌥↓
- Copy Command Output⌥⇧⌘C
- Select the Closest Bookmark Up⌥↑
- Select All Blocks⌘A
- Split Pane RightCtrlShiftD
- Command SearchCtrlR
- WorkflowsCtrlShiftR
- GenerateCtrl`
- Select the Closest Bookmark DownAltDOWN
- Copy Command OutputCtrlShiftAltC
- Select the Closest Bookmark UpAltUP
- Select All BlocksCtrlShiftA
- Clear BlocksCtrlShiftK
- Bookmark Selected BlockCtrlShiftB
Moving between VS Code and Cursor
Cursor is built on VS Code but adds keys of its own, and some reuse a combination VS Code already assigns. The comparison lists every one.
FAQ
- What is the most useful VS Code shortcut?
- The command palette — ⇧⌘P on a Mac, Ctrl+Shift+P on Windows. It finds every command by name, including the ones you have no shortcut for.
- Where do these shortcuts come from?
- From each tool's official documentation. Every app page lists its sources and the date its shortcuts were last checked.