Cursor keyboard shortcuts
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.
- Open or close the AI pane (Agent)MacCmdLorCmdIWindowsCtrlLorCtrlILinuxCtrlLorCtrlI
- Inline edit with AIMacCmdKWindowsCtrlKLinuxCtrlK
- Accept a Tab suggestionMacTabWindowsTabLinuxTab
- Go to a fileMacCmdPWindowsCtrlPLinuxCtrlP
- Show or hide the terminalMacCtrl`WindowsCtrl`LinuxCtrl`
Cursor AI shortcuts: chat, agent, inline edit and Tab
- Accept the next word of a suggestionMacCmd→WindowsCtrl→LinuxCtrl→
- Dismiss a suggestionMacEscWindowsEscLinuxEsc
- Add the selection to the chatMacShiftCmdLWindowsCtrlShiftLLinuxCtrlShiftL
- Accept all AI changesMacCmdEnterWindowsCtrlEnterLinuxCtrlEnter
- Reject all AI changesMacCmdBackspaceWindowsCtrlBackspaceLinuxCtrlBackspace
- Open the mode menu (Agent, Ask, Plan)MacCmd.WindowsCtrl.LinuxCtrl.
- Start a new chatMacCmdNWindowsCtrlNLinuxCtrlN
- Cursor settingsMacShiftCmdJWindowsCtrlShiftJLinuxCtrlShiftJ
- 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.
AI
11 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Open or close the AI pane (Agent) | CmdLorCmdI | CtrlLorCtrlI | CtrlLorCtrlI |
| Inline edit with AIEditor focused | CmdK | CtrlK | CtrlK |
| Accept a Tab suggestionSuggestion shown | Tab | Tab | Tab |
| Accept the next word of a suggestionSuggestion shown | Cmd→ | Ctrl→ | Ctrl→ |
| Dismiss a suggestionSuggestion shown | Esc | Esc | Esc |
| Add the selection to the chatText selected | ShiftCmdL | CtrlShiftL | CtrlShiftL |
| Accept all AI changesReviewing changes | CmdEnter | CtrlEnter | CtrlEnter |
| Reject all AI changesReviewing changes | CmdBackspace | CtrlBackspace | CtrlBackspace |
| Open the mode menu (Agent, Ask, Plan)AI pane focused | Cmd. | Ctrl. | Ctrl. |
| Start a new chatAI pane focused | CmdN | CtrlN | CtrlN |
| Cursor settings | ShiftCmdJ | CtrlShiftJ | CtrlShiftJ |
Editor
12 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Command palette | ShiftCmdP | CtrlShiftP | CtrlShiftP |
| Go to a file | CmdP | CtrlP | CtrlP |
| Show or hide the side bar | CmdB | CtrlB | CtrlB |
| Show or hide the terminal | Ctrl` | Ctrl` | Ctrl` |
| Comment or uncomment the lineEditor focused | Cmd/ | Ctrl/ | Ctrl/ |
| Add the next match to the selection | CmdD | CtrlD | CtrlD |
| Go to definition | F12 | F12 | F12 |
| Rename symbol | F2 | F2 | F2 |
| Find | CmdF | CtrlF | CtrlF |
| Search in files | ShiftCmdF | CtrlShiftF | CtrlShiftF |
| Save | CmdS | CtrlS | CtrlS |
| VS Code settings | Cmd, | Ctrl, | Ctrl, |
Files and panels
11 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Show the file explorer | ShiftCmdE | CtrlShiftE | CtrlShiftE |
| Show source control | CtrlShiftG | CtrlShiftG | CtrlShiftG |
| Show extensions | ShiftCmdX | CtrlShiftX | CtrlShiftX |
| Show or hide the bottom panel | CmdJ | CtrlJ | CtrlJ |
| New terminal | CtrlShift` | CtrlShift` | CtrlShift` |
| Show problems | ShiftCmdM | CtrlShiftM | CtrlShiftM |
| Open the keybindings editor| Cursor moved VS Code's Ctrl+K chords to Ctrl+R. | CmdR,CmdS | CtrlR,CtrlS | CtrlR,CtrlS |
| Close the editor | CmdW | CtrlW | CtrlW |
| Reopen the closed editor | ShiftCmdT | CtrlShiftT | CtrlShiftT |
| Switch editors | CtrlTab | CtrlTab | CtrlTab |
| Split the editor | Cmd\ | Ctrl\ | Ctrl\ |
Editing
9 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Undo | CmdZ | CtrlZ | CtrlZ |
| Redo | ShiftCmdZ | CtrlY | CtrlShiftZ |
| Move the line up | Option↑ | Alt↑ | Alt↑ |
| Move the line down | Option↓ | Alt↓ | Alt↓ |
| Copy the line down | OptionShift↓ | AltShift↓ | CtrlAltShift↓ |
| Delete the line | ShiftCmdK | CtrlShiftK | CtrlShiftK |
| Add a cursor below | OptionCmd↓ | CtrlAlt↓ | AltShift↓ |
| Format the document | OptionShiftF | AltShiftF | CtrlShiftI |
| Find and replace | OptionCmdF | CtrlH | CtrlH |
Navigation
7 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Go to a line | CtrlG | CtrlG | CtrlG |
| Go to a symbol in the file | ShiftCmdO | CtrlShiftO | CtrlShiftO |
| Show references | ShiftF12 | ShiftF12 | ShiftF12 |
| Next problem | F8 | F8 | F8 |
| Go back | Ctrl- | Alt← | CtrlAlt- |
| Start debugging | F5 | F5 | F5 |
| Toggle a breakpoint | F9 | F9 | F9 |
No shortcuts match. Try fewer words, the key names only, or search every app.
Show the key map: which keys Cursor uses mostDarker orange = used by more shortcuts
Cursor editor shortcuts: comment, format and multiple cursors
- Comment or uncomment the lineMacCmd/WindowsCtrl/LinuxCtrl/
- Add the next match to the selectionMacCmdDWindowsCtrlDLinuxCtrlD
- Move the line upMacOption↑WindowsAlt↑LinuxAlt↑
- Move the line downMacOption↓WindowsAlt↓LinuxAlt↓
- Copy the line downMacOptionShift↓WindowsAltShift↓LinuxCtrlAltShift↓
- Delete the lineMacShiftCmdKWindowsCtrlShiftKLinuxCtrlShiftK
- Add a cursor belowMacOptionCmd↓WindowsCtrlAlt↓LinuxAltShift↓
- Format the documentMacOptionShiftFWindowsAltShiftFLinuxCtrlShiftI
- Find and replaceMacOptionCmdFWindowsCtrlHLinuxCtrlH
- Go to a lineMacCtrlGWindowsCtrlGLinuxCtrlG
- Go to a symbol in the fileMacShiftCmdOWindowsCtrlShiftOLinuxCtrlShiftO
- Show referencesMacShiftF12WindowsShiftF12LinuxShiftF12
- Rename symbolMacF2WindowsF2LinuxF2
- Go to definitionMacF12WindowsF12LinuxF12
- Go backMacCtrl-WindowsAlt←LinuxCtrlAlt-
- Next problemMacF8WindowsF8LinuxF8
- 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
- Show or hide the side barMacCmdBWindowsCtrlBLinuxCtrlB
- New terminalMacCtrlShift`WindowsCtrlShift`LinuxCtrlShift`
- Show or hide the bottom panelMacCmdJWindowsCtrlJLinuxCtrlJ
- Show the file explorerMacShiftCmdEWindowsCtrlShiftELinuxCtrlShiftE
- Show source controlMacCtrlShiftGWindowsCtrlShiftGLinuxCtrlShiftG
- Show extensionsMacShiftCmdXWindowsCtrlShiftXLinuxCtrlShiftX
- Show problemsMacShiftCmdMWindowsCtrlShiftMLinuxCtrlShiftM
- Split the editorMacCmd\WindowsCtrl\LinuxCtrl\
- Switch editorsMacCtrlTabWindowsCtrlTabLinuxCtrlTab
- Close the editorMacCmdWWindowsCtrlWLinuxCtrlW
- Reopen the closed editorMacShiftCmdTWindowsCtrlShiftTLinuxCtrlShiftT
- Start debuggingMacF5WindowsF5LinuxF5
- Toggle a breakpointMacF9WindowsF9LinuxF9
Change or reset Cursor keyboard shortcuts
- Open the keybindings editorMacCmdR,CmdSWindowsCtrlR,CtrlSLinuxCtrlR,CtrlS
- VS Code settingsMacCmd,WindowsCtrl,LinuxCtrl,
- 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.