› Cursor

Cursor Shortcuts

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

Source: Official documentation · Dataset date 2026-06

31
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.

  • AI Edit (inline)CtrlK
  • Command PaletteCtrlShiftP
  • UndoCtrlZ
  • Go to definitionF12
  • AI ChatCtrlL
  • Composer (multi-file AI)CtrlI

AI Features

8 shortcuts
AI Edit (inline)
CtrlK
Ctrl+K · Cmd+K
AI Chat
CtrlL
Ctrl+L · Cmd+L
Composer (multi-file AI)
CtrlI
Ctrl+I · Cmd+I
Accept AI suggestion
Tab
Tab
Reject AI suggestion
Escape
Escape
Accept next word of suggestion
CtrlRight
Ctrl+Right · Cmd+Right
Add file to chat context
CtrlShiftL
Ctrl+Shift+L · Cmd+Shift+L
New chat
CtrlShiftI
Ctrl+Shift+I · Cmd+Shift+I

General

5 shortcuts
Command Palette
CtrlShiftP
Ctrl+Shift+P · Cmd+Shift+P
Quick Open / Go to File
CtrlP
Ctrl+P · Cmd+P
New window
CtrlShiftN
Ctrl+Shift+N · Cmd+Shift+N
User Settings
Ctrl,
Ctrl+, · Cmd+,
Keyboard Shortcuts
CtrlKCtrlS
Ctrl+K Ctrl+S · Cmd+K Cmd+S

Editing

11 shortcuts
Undo
CtrlZ
Ctrl+Z · Cmd+Z
Redo
CtrlY
Ctrl+Y · Cmd+Shift+Z
Format document
AltShiftF
Alt+Shift+F · Opt+Shift+F · Ctrl+Shift+I
Toggle line comment
Ctrl/
Ctrl+/ · Cmd+/
Move line up/down
Alt↑/↓
Alt+↑ · Alt+↓ · Opt+↑ · Opt+↓
Delete line
CtrlShiftK
Ctrl+Shift+K · Cmd+Shift+K
Duplicate line
AltShift↓
Alt+Shift+↓ · Opt+Shift+↓
Find
CtrlF
Ctrl+F · Cmd+F
Replace
CtrlH
Ctrl+H · Opt+Cmd+F
Add cursor above/below
AltCtrl↑/↓
Alt+Ctrl+↑ · Alt+Ctrl+↓ · Opt+Cmd+↑ · Opt+Cmd+↓
Select all occurrences
CtrlShiftL
Ctrl+Shift+L · Cmd+Shift+L

Navigation

7 shortcuts
Go to definition
F12
F12
Go to line
CtrlG
Ctrl+G
Go back
AltLeft
Alt+Left · Ctrl+-
Go forward
AltRight
Alt+Right · Ctrl+Shift+-
Explorer
CtrlShiftE
Ctrl+Shift+E · Cmd+Shift+E
Source control
CtrlShiftG
Ctrl+Shift+G
Toggle terminal
Ctrl`
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.

Which operating systems are included for Cursor?

This reference includes shortcuts for Windows · macOS · Linux. Availability depends on the action and app version.

See also

Explore shortcuts by key

Key lookup

Compare shortcuts

Cursor / VS Code

No shortcuts match your search.