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 lineCtrlP
Quick open fileAltUp/Down
Move line up/downCtrlHome
Go to beginning of fileCtrlEnd
Go to end of fileCtrlF
Find in fileCtrlShiftF
Find in projectF12
Go to definitionEditing
Edit your code faster
CtrlX
Cut lineCtrlC
Copy lineCtrlV
PasteCtrlShiftK
Delete lineCtrlEnter
Insert line belowCtrlShiftEnter
Insert line aboveCtrl/
Toggle line commentShiftAltA
Toggle block commentSelection
Select code with precision
CtrlD
Select next occurrenceCtrlU
Undo last selectionShiftAltUp/Down
Column selectionCtrlL
Select current lineCtrlShiftL
Select all occurrencesAltClick
Insert cursorEscape
Single cursorAI Features
Leverage Cursor's AI capabilities
CtrlK
Generate codeCtrlL
Chat with AICtrlShiftI
Explain codeCtrlShiftL
Fix errorsCtrlShiftO
Optimize codeCtrlShiftD
Document codeFile Management
Manage your files and projects
CtrlN
New fileCtrlO
Open fileCtrlS
Save fileCtrlShiftS
Save asCtrlW
Close fileCtrlShiftT
Reopen closed fileCtrlTab
Switch between filesTerminal
Control the integrated terminal
Ctrl`
Toggle terminalCtrlShift`
Create new terminalCtrlShiftC
Copy selectionCtrlShiftV
Paste into terminalCtrlUp/Down
Scroll terminalCtrlPgUp/PgDn
Switch terminal tabsGit Integration
Work with Git repositories
CtrlShiftG
Open source controlCtrlShiftM
Open problems panelAltGC
Git: CommitAltGP
Git: PushAltGL
Git: PullAltGS
Git: StatusView
Customize your view
CtrlB
Toggle sidebarCtrlShiftE
Explorer viewCtrlShiftD
Debug viewCtrlShiftX
Extensions viewCtrl+
Zoom inCtrl-
Zoom outCtrl0
Reset zoomCursor Rules
Custom .cursorrules shortcuts
CtrlShiftP
Open command paletteCtrlAltR
Reload .cursorrulesCtrlAltE
Edit .cursorrulesCtrlAltD
Disable .cursorrulesCtrlAltL
List active rulesCtrlAltC
Create new rule