Keyboard Shortcuts Reference
Quick reference for all Cursor keyboard shortcuts organized by category.
Essential Shortcuts
| Action | macOS | Windows/Linux |
|---|---|---|
| Tab Autocomplete | Tab | Tab |
| Dismiss Suggestion | Esc | Esc |
| Inline Edit | Cmd + K | Ctrl + K |
| Agent Chat | Cmd + I | Ctrl + I |
| Toggle Chat Panel | Cmd + L | Ctrl + L |
| New Chat | Cmd + N | Ctrl + N |
Tab Autocomplete
| Action | macOS | Windows/Linux |
|---|---|---|
| Accept suggestion | Tab | Tab |
| Accept word | Cmd + → | Ctrl + → |
| Reject suggestion | Esc | Esc |
| Next suggestion | Alt + ] | Alt + ] |
| Previous suggestion | Alt + [ | Alt + [ |
Inline Edit (Cmd+K)
| Action | macOS | Windows/Linux |
|---|---|---|
| Open inline edit | Cmd + K | Ctrl + K |
| Generate code | Cmd + K (no selection) | Ctrl + K (no selection) |
| Edit selection | Cmd + K (with selection) | Ctrl + K (with selection) |
| Accept changes | Cmd + Enter | Ctrl + Enter |
| Reject changes | Cmd + Backspace | Ctrl + Backspace |
| Close prompt | Esc | Esc |
Agent Chat
| Action | macOS | Windows/Linux |
|---|---|---|
| Open Agent | Cmd + I | Ctrl + I |
| Toggle panel | Cmd + L | Ctrl + L |
| New chat | Cmd + N | Ctrl + N |
| Submit prompt | Enter | Enter |
| New line in prompt | Shift + Enter | Shift + Enter |
| Stop generation | Esc | Esc |
| Accept all changes | Cmd + Enter | Ctrl + Enter |
| Reject all changes | Cmd + Backspace | Ctrl + Backspace |
Mode Switching
| Action | macOS | Windows/Linux |
|---|---|---|
| Switch modes | Cmd + . | Ctrl + . |
| Change AI model | Cmd + / | Ctrl + / |
Available Modes:
- Agent (default) - Full autonomy, file edits, terminal
- Ask - Research only, no file changes
- Manual - Suggestions only, you approve everything
Context & Mentions
| Context | Shortcut |
|---|---|
| Add file | @filename |
| Add folder | @foldername |
| Add codebase | @Codebase |
| Add documentation | @Docs |
| Add web content | @Web |
| Add git changes | @Git |
| Recent files | @Recent |
| Cursor rules | @Cursor Rules |
Terminal Integration
| Action | macOS | Windows/Linux |
|---|---|---|
| Open terminal | `Cmd + `` | `Ctrl + `` |
| New terminal | `Cmd + Shift + `` | `Ctrl + Shift + `` |
| Terminal AI | Cmd + K (in terminal) | Ctrl + K (in terminal) |
| Run command | Enter | Enter |
| Clear terminal | Cmd + K | Ctrl + K |
File Navigation
| Action | macOS | Windows/Linux |
|---|---|---|
| Quick open | Cmd + P | Ctrl + P |
| Go to symbol | Cmd + Shift + O | Ctrl + Shift + O |
| Go to line | Cmd + G | Ctrl + G |
| Go to definition | F12 | F12 |
| Find in files | Cmd + Shift + F | Ctrl + Shift + F |
| Close file | Cmd + W | Ctrl + W |
Editing
| Action | macOS | Windows/Linux |
|---|---|---|
| Undo | Cmd + Z | Ctrl + Z |
| Redo | Cmd + Shift + Z | Ctrl + Shift + Z |
| Cut | Cmd + X | Ctrl + X |
| Copy | Cmd + C | Ctrl + C |
| Paste | Cmd + V | Ctrl + V |
| Find | Cmd + F | Ctrl + F |
| Replace | Cmd + H | Ctrl + H |
| Comment line | Cmd + / | Ctrl + / |
| Move line up | Alt + ↑ | Alt + ↑ |
| Move line down | Alt + ↓ | Alt + ↓ |
| Duplicate line | Cmd + Shift + D | Ctrl + Shift + D |
| Delete line | Cmd + Shift + K | Ctrl + Shift + K |
Multi-Cursor
| Action | macOS | Windows/Linux |
|---|---|---|
| Add cursor | Alt + Click | Alt + Click |
| Add cursor above | Cmd + Alt + ↑ | Ctrl + Alt + ↑ |
| Add cursor below | Cmd + Alt + ↓ | Ctrl + Alt + ↓ |
| Select all occurrences | Cmd + Shift + L | Ctrl + Shift + L |
| Add next occurrence | Cmd + D | Ctrl + D |
View & Layout
| Action | macOS | Windows/Linux |
|---|---|---|
| Toggle sidebar | Cmd + B | Ctrl + B |
| Toggle panel | Cmd + J | Ctrl + J |
| Split editor | Cmd + \ | Ctrl + \ |
| Zoom in | Cmd + + | Ctrl + + |
| Zoom out | Cmd + - | Ctrl + - |
| Reset zoom | Cmd + 0 | Ctrl + 0 |
| Full screen | Cmd + Ctrl + F | F11 |
Command Palette
| Action | macOS | Windows/Linux |
|---|---|---|
| Open command palette | Cmd + Shift + P | Ctrl + Shift + P |
| Settings | Cmd + , | Ctrl + , |
Useful Commands:
Cursor: Settings- Open Cursor settingsCursor: Toggle AI- Enable/disable AI featuresCursor: Clear Chat History- Reset conversationCursor: Open Keyboard Shortcuts- View/edit shortcuts
Checkpoints
| Action | Description |
|---|---|
| View checkpoints | Agent panel → History |
| Restore checkpoint | Click checkpoint → Restore |
| Compare changes | Click checkpoint → View Diff |
CLI Commands
| Command | Description |
|---|---|
cursor . | Open current directory |
cursor path/to/file | Open specific file |
cursor --help | Show CLI help |
cursor --version | Show version |
cursor --new-window | Open new window |
cursor --reuse-window | Reuse existing window |
Tips
Quick Actions
Cmd+Kin editor = Inline EditCmd+Kin terminal = Terminal AICmd+Ianywhere = Open Agent
Context Shortcuts
- Type
@to see all context options @Codebasefor codebase-wide questions@filename.tsto reference specific files
Mode Switching
Cmd+.to cycle through modes quickly- Use Ask mode when researching
- Use Agent mode when building
Chat Efficiency
Cmd+Nfor fresh context in new chatShift+Enterfor multi-line promptsEscto stop long generations