Skip to content

Keyboard Shortcuts Reference

Quick reference for all Cursor keyboard shortcuts organized by category.


Essential Shortcuts

ActionmacOSWindows/Linux
Tab AutocompleteTabTab
Dismiss SuggestionEscEsc
Inline EditCmd + KCtrl + K
Agent ChatCmd + ICtrl + I
Toggle Chat PanelCmd + LCtrl + L
New ChatCmd + NCtrl + N

Tab Autocomplete

ActionmacOSWindows/Linux
Accept suggestionTabTab
Accept wordCmd + →Ctrl + →
Reject suggestionEscEsc
Next suggestionAlt + ]Alt + ]
Previous suggestionAlt + [Alt + [

Inline Edit (Cmd+K)

ActionmacOSWindows/Linux
Open inline editCmd + KCtrl + K
Generate codeCmd + K (no selection)Ctrl + K (no selection)
Edit selectionCmd + K (with selection)Ctrl + K (with selection)
Accept changesCmd + EnterCtrl + Enter
Reject changesCmd + BackspaceCtrl + Backspace
Close promptEscEsc

Agent Chat

ActionmacOSWindows/Linux
Open AgentCmd + ICtrl + I
Toggle panelCmd + LCtrl + L
New chatCmd + NCtrl + N
Submit promptEnterEnter
New line in promptShift + EnterShift + Enter
Stop generationEscEsc
Accept all changesCmd + EnterCtrl + Enter
Reject all changesCmd + BackspaceCtrl + Backspace

Mode Switching

ActionmacOSWindows/Linux
Switch modesCmd + .Ctrl + .
Change AI modelCmd + /Ctrl + /

Available Modes:

  • Agent (default) - Full autonomy, file edits, terminal
  • Ask - Research only, no file changes
  • Manual - Suggestions only, you approve everything

Context & Mentions

ContextShortcut
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

ActionmacOSWindows/Linux
Open terminal`Cmd + ```Ctrl + ``
New terminal`Cmd + Shift + ```Ctrl + Shift + ``
Terminal AICmd + K (in terminal)Ctrl + K (in terminal)
Run commandEnterEnter
Clear terminalCmd + KCtrl + K

File Navigation

ActionmacOSWindows/Linux
Quick openCmd + PCtrl + P
Go to symbolCmd + Shift + OCtrl + Shift + O
Go to lineCmd + GCtrl + G
Go to definitionF12F12
Find in filesCmd + Shift + FCtrl + Shift + F
Close fileCmd + WCtrl + W

Editing

ActionmacOSWindows/Linux
UndoCmd + ZCtrl + Z
RedoCmd + Shift + ZCtrl + Shift + Z
CutCmd + XCtrl + X
CopyCmd + CCtrl + C
PasteCmd + VCtrl + V
FindCmd + FCtrl + F
ReplaceCmd + HCtrl + H
Comment lineCmd + /Ctrl + /
Move line upAlt + ↑Alt + ↑
Move line downAlt + ↓Alt + ↓
Duplicate lineCmd + Shift + DCtrl + Shift + D
Delete lineCmd + Shift + KCtrl + Shift + K

Multi-Cursor

ActionmacOSWindows/Linux
Add cursorAlt + ClickAlt + Click
Add cursor aboveCmd + Alt + ↑Ctrl + Alt + ↑
Add cursor belowCmd + Alt + ↓Ctrl + Alt + ↓
Select all occurrencesCmd + Shift + LCtrl + Shift + L
Add next occurrenceCmd + DCtrl + D

View & Layout

ActionmacOSWindows/Linux
Toggle sidebarCmd + BCtrl + B
Toggle panelCmd + JCtrl + J
Split editorCmd + \Ctrl + \
Zoom inCmd + +Ctrl + +
Zoom outCmd + -Ctrl + -
Reset zoomCmd + 0Ctrl + 0
Full screenCmd + Ctrl + FF11

Command Palette

ActionmacOSWindows/Linux
Open command paletteCmd + Shift + PCtrl + Shift + P
SettingsCmd + ,Ctrl + ,

Useful Commands:

  • Cursor: Settings - Open Cursor settings
  • Cursor: Toggle AI - Enable/disable AI features
  • Cursor: Clear Chat History - Reset conversation
  • Cursor: Open Keyboard Shortcuts - View/edit shortcuts

Checkpoints

ActionDescription
View checkpointsAgent panel → History
Restore checkpointClick checkpoint → Restore
Compare changesClick checkpoint → View Diff

CLI Commands

CommandDescription
cursor .Open current directory
cursor path/to/fileOpen specific file
cursor --helpShow CLI help
cursor --versionShow version
cursor --new-windowOpen new window
cursor --reuse-windowReuse existing window

Tips

Quick Actions

  • Cmd+K in editor = Inline Edit
  • Cmd+K in terminal = Terminal AI
  • Cmd+I anywhere = Open Agent

Context Shortcuts

  • Type @ to see all context options
  • @Codebase for codebase-wide questions
  • @filename.ts to reference specific files

Mode Switching

  • Cmd+. to cycle through modes quickly
  • Use Ask mode when researching
  • Use Agent mode when building

Chat Efficiency

  • Cmd+N for fresh context in new chat
  • Shift+Enter for multi-line prompts
  • Esc to stop long generations

See Also

Built with VitePress | Powered by Claude AI