Cursor

Cursor Shortcuts

Cursor AI code editor keyboard shortcuts — includes all VS Code shortcuts plus AI features. v0.42

Shortcuts
4
Categories

Cheat sheet guide

Cursor shortcuts worth learning first

This page collects 31 searchable Cursor keyboard shortcuts across 4 categories. Start with the shortcuts for AI Features, General, Editing, Navigation, then print the cheat sheet once the important ones are worth keeping nearby.

  • Switch OS tabs for Windows, macOS, or Linux shortcuts.
  • Use / to jump to search instantly.
  • Use Compare mode when moving between machines.
  • Print or save the page as a compact PDF cheat sheet.
AI Features 8 shortcuts
AI Edit (inline)
Ctrl+K
AI Chat
Ctrl+L
Composer (multi-file AI)
Ctrl+I
Accept AI suggestion
Tab
Reject AI suggestion
Escape
Accept next word of suggestion
Ctrl+Right
Add file to chat context
Ctrl+Shift+L
New chat
Ctrl+Shift+I
General 5 shortcuts
Command Palette
Ctrl+Shift+P
Quick Open / Go to File
Ctrl+P
New window
Ctrl+Shift+N
User Settings
Ctrl+,
Keyboard Shortcuts
Ctrl+KCtrl+S
Editing 11 shortcuts
Undo
Ctrl+Z
Redo
Ctrl+Y
Format document
Alt+Shift+F
Toggle line comment
Ctrl+/
Move line up/down
Alt+↑/↓
Delete line
Ctrl+Shift+K
Duplicate line
Alt+Shift+
Find
Ctrl+F
Replace
Ctrl+H
Add cursor above/below
Alt+Ctrl+↑/↓
Select all occurrences
Ctrl+Shift+L
Navigation 7 shortcuts
Go to definition
F12
Go to line
Ctrl+G
Go back
Alt+Left
Go forward
Alt+Right
Explorer
Ctrl+Shift+E
Source control
Ctrl+Shift+G
Toggle terminal
Ctrl+`

Frequently asked questions

What is the fastest way to find Cursor shortcuts on this page?

Use the search box or press /, then type an action such as ai edit (inline).

Can I print this Cursor shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Does this page include Windows and Mac shortcuts for Cursor?

Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, AI Edit (inline) is Ctrl+K on Windows and ⌘K on macOS where available.

Advertisement
No shortcuts match your search.