Cursor Editor Cheatsheet

A comprehensive list of keyboard shortcuts and commands to help you master Cursor Editor and boost your productivity.

Navigation
Move around your code efficiently
CtrlG
Go to line
CtrlP
Quick open file
AltUp/Down
Move line up/down
CtrlHome
Go to beginning of file
CtrlEnd
Go to end of file
CtrlF
Find in file
CtrlShiftF
Find in project
F12
Go to definition
Editing
Edit your code faster
CtrlX
Cut line
CtrlC
Copy line
CtrlV
Paste
CtrlShiftK
Delete line
CtrlEnter
Insert line below
CtrlShiftEnter
Insert line above
Ctrl/
Toggle line comment
ShiftAltA
Toggle block comment
Selection
Select code with precision
CtrlD
Select next occurrence
CtrlU
Undo last selection
ShiftAltUp/Down
Column selection
CtrlL
Select current line
CtrlShiftL
Select all occurrences
AltClick
Insert cursor
Escape
Single cursor
AI Features
Leverage Cursor's AI capabilities
CtrlK
Generate code
CtrlL
Chat with AI
CtrlShiftI
Explain code
CtrlShiftL
Fix errors
CtrlShiftO
Optimize code
CtrlShiftD
Document code
File Management
Manage your files and projects
CtrlN
New file
CtrlO
Open file
CtrlS
Save file
CtrlShiftS
Save as
CtrlW
Close file
CtrlShiftT
Reopen closed file
CtrlTab
Switch between files
Terminal
Control the integrated terminal
Ctrl`
Toggle terminal
CtrlShift`
Create new terminal
CtrlShiftC
Copy selection
CtrlShiftV
Paste into terminal
CtrlUp/Down
Scroll terminal
CtrlPgUp/PgDn
Switch terminal tabs
Git Integration
Work with Git repositories
CtrlShiftG
Open source control
CtrlShiftM
Open problems panel
AltGC
Git: Commit
AltGP
Git: Push
AltGL
Git: Pull
AltGS
Git: Status
View
Customize your view
CtrlB
Toggle sidebar
CtrlShiftE
Explorer view
CtrlShiftD
Debug view
CtrlShiftX
Extensions view
Ctrl+
Zoom in
Ctrl-
Zoom out
Ctrl0
Reset zoom
Cursor Rules
Custom .cursorrules shortcuts
CtrlShiftP
Open command palette
CtrlAltR
Reload .cursorrules
CtrlAltE
Edit .cursorrules
CtrlAltD
Disable .cursorrules
CtrlAltL
List active rules
CtrlAltC
Create new rule