Cursor

Cursor Shortcuts

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

Source: Official documentation · Updated 2026-06

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
AI Chat
CtrlL
Composer (multi-file AI)
CtrlI
Accept AI suggestion
Tab
Reject AI suggestion
Escape
Accept next word of suggestion
CtrlRight
Add file to chat context
CtrlShiftL
New chat
CtrlShiftI

General

5 shortcuts
Command Palette
CtrlShiftP
Quick Open / Go to File
CtrlP
New window
CtrlShiftN
User Settings
Ctrl,
Keyboard Shortcuts
CtrlKCtrlS

Editing

11 shortcuts
Undo
CtrlZ
Redo
CtrlY
Format document
AltShiftF
Toggle line comment
Ctrl/
Move line up/down
Alt↑/↓
Delete line
CtrlShiftK
Duplicate line
AltShift
Find
CtrlF
Replace
CtrlH
Add cursor above/below
AltCtrl↑/↓
Select all occurrences
CtrlShiftL

Navigation

7 shortcuts
Go to definition
F12
Go to line
CtrlG
Go back
AltLeft
Go forward
AltRight
Explorer
CtrlShiftE
Source control
CtrlShiftG
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.

See also

No shortcuts match your search.