Cursor AI Keyboard Shortcuts: Complete Cheat Sheet 2024
Why Keyboard Shortcuts Matter
Efficiency in coding depends heavily on minimizing context switching between keyboard and mouse. Cursor AI’s keyboard shortcuts enable rapid navigation, AI interaction, and code manipulation without leaving your keyboard. This guide covers essential shortcuts that experienced developers use daily.
AI Interaction Shortcuts
Opening AI Chat
- Cmd/Ctrl + L – Open chat panel for general queries
- Cmd/Ctrl + K – Open inline edit mode for selected code
- Cmd/Ctrl + I – Open AI-powered code generation
Accepting Suggestions
- Tab – Accept current AI code suggestion
- Cmd/Ctrl + Enter – Accept multi-line suggestion
- Escape – Dismiss current suggestion
Navigation Shortcuts
File Operations
- Cmd/Ctrl + P – Quick file open
- Cmd/Ctrl + Shift + P – Command palette
- Cmd/Ctrl + N – New file
- Cmd/Ctrl + W – Close current file
Editor Navigation
- Cmd/Ctrl + G – Go to line number
- Cmd/Ctrl + Shift + O – Navigate to symbol
- Cmd/Ctrl + Tab – Switch between open tabs
- Cmd/Ctrl + B – Toggle sidebar visibility
Editing Shortcuts
Basic Editing
- Cmd/Ctrl + C – Copy
- Cmd/Ctrl + V – Paste
- Cmd/Ctrl + X – Cut
- Cmd/Ctrl + Z – Undo
- Cmd/Ctrl + Shift + Z – Redo
Multi-Cursor Operations
- Cmd/Ctrl + D – Select next occurrence
- Cmd/Ctrl + Shift + L – Select all occurrences
- Alt + Click – Add cursor at click position
- Cmd/Ctrl + Alt + Down – Add cursor below
Search and Replace
Find Operations
- Cmd/Ctrl + F – Find in file
- Cmd/Ctrl + H – Replace in file
- Cmd/Ctrl + Shift + F – Find in project
- Cmd/Ctrl + Shift + H – Replace in project
AI-Specific Features
Context Menu Actions
- Cmd/Ctrl + Shift + R – AI refactor selected code
- Cmd/Ctrl + Shift + X – AI explain selected code
- Cmd/Ctrl + Shift + G – Generate commit message
Productivity Combinations
Power User Combinations
Combine shortcuts for powerful workflows:
- Select word + Cmd/Ctrl + D = Select all matching words
- Cmd/Ctrl + P + type filename = Quick file open
- Cmd/Ctrl + Shift + P + type command = Access any command
Customizing Shortcuts
Cursor AI allows customization of all keyboard shortcuts. Access settings via Cmd/Ctrl + , then navigate to Keyboard Shortcuts. You can remap any command to suit your preferences.
Mac vs Windows/Linux
Most shortcuts use Cmd on Mac and Ctrl on Windows/Linux. The functionality remains identical across platforms. Some shortcuts may vary slightly—consult the official documentation for platform-specific differences.
Quick Reference Table
| Action | Mac | Windows/Linux |
|---|---|---|
| Open Chat | Cmd + L | Ctrl + L |
| Inline Edit | Cmd + K | Ctrl + K |
| Accept Suggestion | Tab | Tab |
| Quick Open | Cmd + P | Ctrl + P |
| Command Palette | Cmd + Shift + P | Ctrl + Shift + P |
| Find | Cmd + F | Ctrl + F |
Conclusion
Mastering these keyboard shortcuts transforms your Cursor AI experience from good to exceptional. Start with the most essential shortcuts—Cmd/Ctrl + L for chat and Tab for suggestions—and gradually incorporate more into your daily workflow.
Last Updated: May 2024


Leave a Reply