Ctrl+K
Inline Edit - Edit selected code with natural language
Master Cursor’s keyboard shortcuts to code at the speed of thought. These shortcuts are your gateway to 10x productivity gains - reducing thousands of daily micro-interactions to instant muscle memory actions.
Every time you reach for your mouse, you lose 2-3 seconds. That’s:
Master these shortcuts and reclaim that time for actual coding.
Ctrl+K
Inline Edit - Edit selected code with natural language
Ctrl+I
Agent Chat - Open AI chat for complex multi-file tasks
Ctrl+L
Toggle Sidepanel - Show/hide the AI chat panel
Ctrl+E
Background Agent - Access background agent control panel
| Shortcut | Action | When to Use |
|---|---|---|
Ctrl+K | Inline Edit | Quick, focused edits to selected code |
Ctrl+I | Agent Chat | Complex tasks spanning multiple files |
Ctrl+L | Toggle Sidepanel | Switch between code and chat focus |
Ctrl+E | Background Agent | Long-running or parallel tasks |
Ctrl+. | Mode Menu | Switch between Agent/Ask modes |
Ctrl+/ | Model Toggle | Cycle through AI models |
Tab | Accept Suggestion | Accept AI autocomplete |
Ctrl+→ | Accept Next Word | Partial acceptance of suggestions |
| Shortcut | Action | Power User Tip |
|---|---|---|
Enter | Submit Message | Hold Alt for priority queue |
Ctrl+Shift+Backspace | Cancel Generation | Stop runaway AI responses |
Ctrl+Shift+L | Add Selected to Chat | Include code context instantly |
Ctrl+Enter | Accept All Changes | Batch accept AI suggestions |
Ctrl+Backspace | Reject All Changes | Batch reject AI suggestions |
Ctrl+N | New Chat | Start fresh conversation |
Ctrl+T | New Chat Tab | Parallel conversations |
Ctrl+[ / Ctrl+] | Navigate Chats | Move between chat history |
| Shortcut | Action | Example Use |
|---|---|---|
Ctrl+K (in terminal) | AI Command | ”list my five most recent git branches” |
Ctrl+Shift+K | Toggle Terminal Focus | Quick terminal commands |
Replace all Ctrl with Cmd:
Cmd+K - Inline EditCmd+I - Agent ChatCmd+L - Toggle PanelCmd+/ - Model ToggleUse Ctrl as shown in tables above. All shortcuts are consistent across Windows and Linux distributions.
1. See error → Select code (double-click)2. Ctrl+K → Type "fix error"3. Enter → Tab (accept fix)Total time: 3 seconds1. Select relevant code2. Ctrl+Shift+L (add to chat)3. Repeat for multiple contexts4. Type question → EnterPerfect for: Complex debugging1. Select function/class2. Ctrl+K3. "refactor to use [pattern]"4. Review diff → EnterTime saved: 5-10 minutes per refactorCtrl+Shift+P (Command Palette)Consider adding these custom shortcuts for frequent operations:
{ "key": "ctrl+alt+t", "command": "cursor.generateTests", "when": "editorTextFocus"},{ "key": "ctrl+alt+d", "command": "cursor.generateDocs", "when": "editorTextFocus"},{ "key": "ctrl+alt+r", "command": "cursor.reviewCode", "when": "editorTextFocus"}Ctrl+K - Inline edits (use 50+ times)Tab - Accept completionsCtrl+I - Open chatCtrl+L - Toggle panelCtrl+Shift+L - Add context to chatCtrl+Enter - Accept all changesCtrl+N - New chatCtrl+→ - Partial acceptanceCtrl+E - Background agentCtrl+T - Chat tabsCtrl+. - Mode switchingCtrl+Shift+L is a game-changerCtrl+→ gives you fine controlTrack your shortcut usage for one week:
| Metric | Beginner | Intermediate | Expert |
|---|---|---|---|
| Shortcuts/hour | 5-10 | 20-30 | 50+ |
| Mouse usage | 80% | 40% | under 10% |
| Task completion | Baseline | 1.5x faster | 3x faster |
| Flow interruptions | Frequent | Occasional | Rare |
Complete an entire feature without touching your mouse:
Ctrl+N)Ctrl+K → “add try-catch”)Ctrl+I → “write tests”)Ctrl+K in terminal → “commit with message”)Ctrl+K to break it into smaller functions“Learning shortcuts cut my coding time by 40%. I used to spend half my time navigating - now it’s instant.”
Key shortcuts that helped most:
Ctrl+K for quick fixesTab for completionsCtrl+I for learning“I process 3x more PRs now. Shortcuts + AI = superhuman code review speed.”
Advanced workflow:
“Our team standardized on Cursor shortcuts. Onboarding time dropped 50%.”
Team productivity:
Now that you’ve mastered keyboard shortcuts, enhance your productivity further with: