Cursor logo

Cursor

AI-powered code editor built on VS Code with Composer, Chat, and Cmd+K for intelligent code generation and editing

340 shortcuts

Visit website
Platform

Composer (AI)

ActionShortcut
Open Composer⌘+I
Open Composer (fullscreen)⇧+⌘+I
Toggle Agent mode⌘+.
Toggle AI model⌘+/
Open model selector⌥+⌘+/
Accept all changes⌘+↩
Reject all changes⌘+⌫
Cancel generation⌘+⌫
Create new composer⌘+N
Open composer as bar⇧+⌘+K
Previous composer⌘+[
Next composer⌘+]
Close composer⌘+W
Cycle to next messageTab
Cycle to previous message⇧+Tab
Select previous message↑
Open Composer⌃+I
Open Composer (fullscreen)⌃+⇧+I
Toggle Agent mode⌃+.
Toggle AI model⌃+/
Open model selector⌃+⌥+/
Accept all changes⌃+Enter
Reject all changes⌃+Backspace
Cancel generation⌃+Backspace
Create new composer⌃+N
Open composer as bar⌃+⇧+K
Previous composer⌃+[
Next composer⌃+]
Close composer⌃+W
Cycle to next messageTab
Cycle to previous message⇧+Tab
Select previous message↑

Chat (AI)

ActionShortcut
Open Chat⌘+L
New Chat⇧+⌘+L
Open Chat/Composer history⌥+⌘+L
Submit↩
Submit with codebase⌘+↩
Add selected code as context⌘+L
Add code to new chat⇧+⌘+L
Open Chat⌃+L
New Chat⌃+⇧+L
Open Chat/Composer history⌃+⌥+L
SubmitEnter
Submit with codebase⌃+Enter
Add selected code as context⌃+L
Add code to new chat⌃+⇧+L

Cmd+K (Inline Edit)

ActionShortcut
Open inline edit⌘+K
Toggle input focus⇧+⌘+K
Apply changes⌘+↩
Cancel/delete changes⌘+⌫
Ask quick question⌥+↩

Tab (AI Completion)

ActionShortcut
Accept suggestionTab
Reject suggestionEsc
Partial accept (word)⌘+→
Accept next line⌘+↓
Accept suggestionTab
Reject suggestionEsc
Partial accept (word)⌃+→
Accept next line⌃+↓

Context (@-Symbols)

ActionShortcut
Reference file@filename
Reference function@functionName
Reference variable@variableName
Search codebase@codebasequery
Search web@webquery
Reference docs@docs
Add folder context#foldername
Select multiple files⌘+P
Reference file@filename
Reference function@functionName
Reference variable@variableName
Search codebase@codebasequery
Search web@webquery
Reference docs@docs
Add folder context#foldername
Select multiple files⌃+P

General

ActionShortcut
Command palette⇧+⌘+P
Quick file open⌘+P
Go to symbol⌘+T
Open Cursor settings⇧+⌘+J
Open settings⌘or
Open keyboard shortcuts⌘+K+⌘+S
Toggle sidebar⌘+B
Toggle terminal⌃+`
New window⇧+⌘+N
Close window⇧+⌘+W
Zoom in⌘++
Zoom out⌘+-
Reset zoom⌘+0
Command palette⌃+⇧+P
Quick file open⌃+P
Go to symbol⌃+T
Open Cursor settings⌃+⇧+J
Open settings⌃or
Open keyboard shortcuts⌃+K+⌃+S
Toggle sidebar⌃+B
Toggle terminal⌃+`
New window⌃+⇧+N
Close window⌃+⇧+W
Zoom in⌃++
Zoom out⌃+-
Reset zoom⌃+0

File

ActionShortcut
New file⌘+N
Open file⌘+O
Save⌘+S
Save as⇧+⌘+S
Save all⌥+⌘+S
Close tab⌘+W
Close all tabs⌘+K+W
Reopen closed tab⇧+⌘+T
New file⌃+N
Open file⌃+O
Save⌃+S
Save as⌃+⇧+S
Save all⌃+⌥+S
Close tab⌃+W
Close all tabs⌃+K+W
Reopen closed tab⌃+⇧+T

Edit

ActionShortcut
Undo⌘+Z
Redo⇧+⌘+Z
Cut⌘+X
Copy⌘+C
Paste⌘+V
Delete line⇧+⌘+K
Cut line⌘+X
Copy line⌘+C
Move line up⌥+↑
Move line down⌥+↓
Duplicate line up⌥+⇧+↑
Duplicate line down⌥+⇧+↓
Insert line below⌘+↩
Insert line above⇧+⌘+↩
Toggle line comment⌘+/
Toggle block comment⌥+⇧+A
Indent line⌘+]
Outdent line⌘+[
Join lines⌃+J
Undo⌃+Z
Redo⌃+⇧+Z
Cut⌃+X
Copy⌃+C
Paste⌃+V
Delete line⌃+⇧+K
Cut line⌃+X
Copy line⌃+C
Move line up⌥+↑
Move line down⌥+↓
Duplicate line up⌥+⇧+↑
Duplicate line down⌥+⇧+↓
Insert line below⌃+Enter
Insert line above⌃+⇧+Enter
Toggle line comment⌃+/
Toggle block comment⌥+⇧+A
Indent line⌃+]
Outdent line⌃+[
Join lines⌃+J

Selection

ActionShortcut
Select all⌘+A
Select line⌘+L
Expand selection⌃+⇧+⌘+→
Shrink selection⌃+⇧+⌘+←
Select to line start⇧+⌘+←
Select to line end⇧+⌘+→
Select word⌘+D
Select all occurrences⇧+⌘+L
Select all⌃+A
Select line⌃+L
Expand selection⌃+⇧+⌥+→
Shrink selection⌃+⇧+⌥+←
Select to line start⇧+Home
Select to line end⇧+End
Select word⌃+D
Select all occurrences⌃+⇧+L

Multi-Cursor

ActionShortcut
Add cursor⌥Click
Add cursor above⌥+⌘+↑
Add cursor below⌥+⌘+↓
Select next occurrence⌘+D
Undo last cursor⌘+U
Add cursors to line ends⌥+⇧+I
Column select⌥+⇧Drag
Add cursor⌥Click
Add cursor above⌃+⌥+↑
Add cursor below⌃+⌥+↓
Select next occurrence⌃+D
Undo last cursor⌃+U
Add cursors to line ends⌥+⇧+I
Column select⌥+⇧Drag

Navigation

ActionShortcut
Go to line⌃+G
Go to file⌘+P
Go to symbol in file⇧+⌘+O
Go to symbol in workspace⌘+T
Go to definitionF12
Peek definition⌥+F12
Go to type definition⌘+F12
Go to implementation⌘+F12
Find all references⇧+F12
Go to bracket⇧+⌘+\
Navigate back⌃+-
Navigate forward⌃+⇧+-
Next errorF8
Previous error⇧+F8
Go to line⌃+G
Go to file⌃+P
Go to symbol in file⌃+⇧+O
Go to symbol in workspace⌃+T
Go to definitionF12
Peek definition⌥+F12
Go to type definition⌃+F12
Go to implementation⌃+F12
Find all references⇧+F12
Go to bracket⌃+⇧+\
Navigate back⌥+←
Navigate forward⌥+→
Next errorF8
Previous error⇧+F8
ActionShortcut
Find⌘+F
Find and replace⌥+⌘+F
Find in files⇧+⌘+F
Replace in files⇧+⌘+H
Find next⌘+G
Find previous⇧+⌘+G
Toggle case sensitive⌥+⌘+C
Toggle regex⌥+⌘+R
Toggle whole word⌥+⌘+W
Find⌃+F
Find and replace⌃+H
Find in files⌃+⇧+F
Replace in files⌃+⇧+H
Find nextF3
Find previous⇧+F3
Toggle case sensitive⌥+C
Toggle regex⌥+R
Toggle whole word⌥+W

Code Actions

ActionShortcut
Quick fix⌘+.
Trigger suggestion⌃+Space
Trigger parameter hints⇧+⌘+Space
Format document⌥+⇧+F
Format selection⌘+K+⌘+F
Rename symbolF2
Show hover⌘+K+⌘+I
Organize imports⌥+⇧+O
Quick fix⌃+.
Trigger suggestion⌃+Space
Trigger parameter hints⌃+⇧+Space
Format document⌥+⇧+F
Format selection⌃+K+⌃+F
Rename symbolF2
Show hover⌃+K+⌃+I
Organize imports⌥+⇧+O

Folding

ActionShortcut
Fold⌥+⌘+[
Unfold⌥+⌘+]
Fold all⌘+K+⌘+0
Unfold all⌘+K+⌘+J
Fold level 1⌘+K+⌘+1
Fold level 2⌘+K+⌘+2
Toggle fold⌘+K+⌘+L
Fold⌃+⇧+[
Unfold⌃+⇧+]
Fold all⌃+K+⌃+0
Unfold all⌃+K+⌃+J
Fold level 1⌃+K+⌃+1
Fold level 2⌃+K+⌃+2
Toggle fold⌃+K+⌃+L

View

ActionShortcut
Toggle panel⌘+J
Toggle problems⇧+⌘+M
Toggle output⇧+⌘+U
Toggle debug console⇧+⌘+Y
Explorer⇧+⌘+E
Search⇧+⌘+F
Source control⌃+⇧+G
Run and debug⇧+⌘+D
Extensions⇧+⌘+X
Toggle panel⌃+J
Toggle problems⌃+⇧+M
Toggle output⌃+⇧+U
Toggle debug console⌃+⇧+Y
Explorer⌃+⇧+E
Search⌃+⇧+F
Source control⌃+⇧+G
Run and debug⌃+⇧+D
Extensions⌃+⇧+X

Editor Layout

ActionShortcut
Split editor right⌘+\
Split editor down⌘+K+⌘+\
Focus 1st editor group⌘+1
Focus 2nd editor group⌘+2
Focus 3rd editor group⌘+3
Move editor left⌘+K+⇧+⌘+←
Move editor right⌘+K+⇧+⌘+→
Split editor right⌃+\
Split editor down⌃+K+⌃+\
Focus 1st editor group⌃+1
Focus 2nd editor group⌃+2
Focus 3rd editor group⌃+3
Move editor left⌃+K+⌃+⇧+←
Move editor right⌃+K+⌃+⇧+→

Tabs

ActionShortcut
Next tab⌃+Tab
Previous tab⌃+⇧+Tab
Pin tab⌘+K+⇧+↩
Next tab⌃+Tab
Previous tab⌃+⇧+Tab
Pin tab⌃+K+⇧+Enter

Terminal

ActionShortcut
New terminal⌃+⇧+`
Split terminal⌘+\
Kill terminal⌘+K
Clear terminal⌘+K
Scroll up⌘+↑
Scroll down⌘+↓
New terminal⌃+⇧+`
Split terminal⌃+\
Kill terminal⌃+K
Clear terminal⌃+K
Scroll up⌃+↑
Scroll down⌃+↓

Debugging

ActionShortcut
Start/ContinueF5
Stop⇧+F5
Restart⇧+⌘+F5
Step overF10
Step intoF11
Step out⇧+F11
Toggle breakpointF9
Run without debugging⌃+F5
Start/ContinueF5
Stop⇧+F5
Restart⌃+⇧+F5
Step overF10
Step intoF11
Step out⇧+F11
Toggle breakpointF9
Run without debugging⌃+F5

Git

ActionShortcut
Open source control⌃+⇧+G
Stage changes⌘+K+⌘+S
Commit⌘+↩
Open changes⌘+K+⌘+O
Open source control⌃+⇧+G
Stage changes⌃+K+⌃+S
Commit⌃+Enter
Open changes⌃+K+⌃+O

Ctrl+K (Inline Edit)

ActionShortcut
Open inline edit⌃+K
Toggle input focus⌃+⇧+K
Apply changes⌃+Enter
Cancel/delete changes⌃+Backspace
Ask quick question⌥+Enter