Skip to content

↑↓ moveEnter openEsc close

Cursor keyboard shortcuts

Cursor 2.1 · 50 shortcuts · checked Nov 2026 · Source: Anysphere docs

Cursor is an AI code editor built on VS Code. These keys open the agent and inline edit, accept or reject AI changes, and cover the everyday editor commands; Cursor moves VS Code's Ctrl+K chords to Ctrl+R because Ctrl+K is inline edit.

Most used Cursor keyboard shortcuts

The Cursor shortcuts worth learning first. The full list follows, grouped by task.

Cursor AI shortcuts: chat, agent, inline edit and Tab

Chat or agent
Ctrl+L (Cmd+L on Mac) opens the AI pane with the chat; Ctrl+I (Cmd+I) opens it ready for the agent to edit files. The mode menu switches between Agent, Ask and the other modes.
50 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

AI

11 shortcuts
ActionMacWindowsLinux
Open or close the AI pane (Agent)CmdLorCmdICtrlLorCtrlICtrlLorCtrlI
Inline edit with AIEditor focusedCmdKCtrlKCtrlK
Accept a Tab suggestionSuggestion shownTabTabTab
Accept the next word of a suggestionSuggestion shownCmd→Ctrl→Ctrl→
Dismiss a suggestionSuggestion shownEscEscEsc
Add the selection to the chatText selectedShiftCmdLCtrlShiftLCtrlShiftL
Accept all AI changesReviewing changesCmdEnterCtrlEnterCtrlEnter
Reject all AI changesReviewing changesCmdBackspaceCtrlBackspaceCtrlBackspace
Open the mode menu (Agent, Ask, Plan)AI pane focusedCmd.Ctrl.Ctrl.
Start a new chatAI pane focusedCmdNCtrlNCtrlN
Cursor settingsShiftCmdJCtrlShiftJCtrlShiftJ

Editor

12 shortcuts
ActionMacWindowsLinux
Command paletteShiftCmdPCtrlShiftPCtrlShiftP
Go to a fileCmdPCtrlPCtrlP
Show or hide the side barCmdBCtrlBCtrlB
Show or hide the terminalCtrl`Ctrl`Ctrl`
Comment or uncomment the lineEditor focusedCmd/Ctrl/Ctrl/
Add the next match to the selectionCmdDCtrlDCtrlD
Go to definitionF12F12F12
Rename symbolF2F2F2
FindCmdFCtrlFCtrlF
Search in filesShiftCmdFCtrlShiftFCtrlShiftF
SaveCmdSCtrlSCtrlS
VS Code settingsCmd,Ctrl,Ctrl,

Files and panels

11 shortcuts
ActionMacWindowsLinux
Show the file explorerShiftCmdECtrlShiftECtrlShiftE
Show source controlCtrlShiftGCtrlShiftGCtrlShiftG
Show extensionsShiftCmdXCtrlShiftXCtrlShiftX
Show or hide the bottom panelCmdJCtrlJCtrlJ
New terminalCtrlShift`CtrlShift`CtrlShift`
Show problemsShiftCmdMCtrlShiftMCtrlShiftM
Open the keybindings editor| Cursor moved VS Code's Ctrl+K chords to Ctrl+R.CmdR,CmdSCtrlR,CtrlSCtrlR,CtrlS
Close the editorCmdWCtrlWCtrlW
Reopen the closed editorShiftCmdTCtrlShiftTCtrlShiftT
Switch editorsCtrlTabCtrlTabCtrlTab
Split the editorCmd\Ctrl\Ctrl\

Editing

9 shortcuts
ActionMacWindowsLinux
UndoCmdZCtrlZCtrlZ
RedoShiftCmdZCtrlYCtrlShiftZ
Move the line upOption↑Alt↑Alt↑
Move the line downOption↓Alt↓Alt↓
Copy the line downOptionShift↓AltShift↓CtrlAltShift↓
Delete the lineShiftCmdKCtrlShiftKCtrlShiftK
Add a cursor belowOptionCmd↓CtrlAlt↓AltShift↓
Format the documentOptionShiftFAltShiftFCtrlShiftI
Find and replaceOptionCmdFCtrlHCtrlH

Navigation

7 shortcuts
ActionMacWindowsLinux
Go to a lineCtrlGCtrlGCtrlG
Go to a symbol in the fileShiftCmdOCtrlShiftOCtrlShiftO
Show referencesShiftF12ShiftF12ShiftF12
Next problemF8F8F8
Start debuggingF5F5F5
Toggle a breakpointF9F9F9
Show the key map: which keys Cursor uses mostDarker orange = used by more shortcuts

Cursor editor shortcuts: comment, format and multiple cursors

Ctrl+K chords moved
Cursor uses Ctrl+K (Cmd+K) for inline edit, so VS Code's two-step Ctrl+K shortcuts start with Ctrl+R (Cmd+R) instead, such as Ctrl+R Ctrl+S for keyboard shortcuts and Ctrl+R Ctrl+0 to fold everything.

Terminal, sidebar and panel shortcuts in Cursor

Change or reset Cursor keyboard shortcuts

Edit as JSON
In the Keyboard Shortcuts editor, the file icon at the top right opens keybindings.json; leaving it as [] resets every change.
IntelliJ or other keys
Install a keymap extension, such as IntelliJ IDEA Keybindings, from the Extensions view to use another editor's keys.

Cursor keyboard shortcuts: questions

Do VS Code shortcuts work in Cursor?
Mostly. Cursor is built on VS Code and keeps its keybindings, but Cursor's AI features take over a few keys, such as Cmd+K / Ctrl+K for inline edit and Cmd+L / Ctrl+L for the AI pane.
How do I accept an AI suggestion in Cursor?
Press Tab to accept a Cursor Tab suggestion, or Cmd+Right (Ctrl+Right) to accept it one word at a time. Esc dismisses it.
Why are Cursor keyboard shortcuts not working?
Check the Keyboard Shortcuts editor for a conflict (search by pressing the keys with the keyboard icon). VS Code habits are the usual cause: Ctrl+K chords start with Ctrl+R in Cursor. An extension or another app with a global shortcut can also take the keys.

These are the default key bindings in Cursor 2.1, as published by Anysphere. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: Cursor keyboard shortcuts for Mac, Cursor keyboard shortcuts for Windows, Cursor keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.