Cursor Keyboard Shortcuts
Complete keyboard shortcut reference for Cursor on MacWindowsLinux.
AI Features
| Action | Shortcut |
|---|---|
| Open AI Chat | CmdLCtrlLCtrlL |
| Inline Edit with AI | CmdKCtrlKCtrlK |
| Accept AI suggestion | TabTabTab |
| Reject AI suggestion | EscapeEscapeEscape |
| Open Composer | CmdICtrlICtrlI |
| AI command in terminal | CmdKCtrlKCtrlK |
| Ask about selected code | CmdLCtrlLCtrlL |
| Fix with AI (from lint errors) | CmdShiftECtrlShiftECtrlShiftE |
General
| Action | Shortcut |
|---|---|
| Show Command Palette | CmdShiftPCtrlShiftPCtrlShiftP |
| Quick Open file | CmdPCtrlPCtrlP |
| Open Settings | Cmd,Ctrl,Ctrl, |
| Open Keyboard Shortcuts | CmdKCmdSCtrlKCtrlSCtrlKCtrlS |
| New File | CmdNCtrlNCtrlN |
| Close Editor | CmdWCtrlWCtrlW |
| Save | CmdSCtrlSCtrlS |
| Save All | CmdKSCtrlKSCtrlKS |
Editing
| Action | Shortcut |
|---|---|
| Cut line | CmdXCtrlXCtrlX |
| Copy line | CmdCCtrlCCtrlC |
| Move line up | AltUpAltUpAltUp |
| Move line down | AltDownAltDownAltDown |
| Copy line up | AltShiftUpAltShiftUpAltShiftUp |
| Copy line down | AltShiftDownAltShiftDownAltShiftDown |
| Delete line | CmdShiftKCtrlShiftKCtrlShiftK |
| Insert line below | CmdEnterCtrlEnterCtrlEnter |
| Insert line above | CmdShiftEnterCtrlShiftEnterCtrlShiftEnter |
| Toggle line comment | Cmd/Ctrl/Ctrl/ |
| Toggle block comment | AltShiftAAltShiftAAltShiftA |
| Indent line | Cmd]Ctrl]Ctrl] |
| Outdent line | Cmd[Ctrl[Ctrl[ |
| Undo | CmdZCtrlZCtrlZ |
| Redo | CmdShiftZCtrlShiftZCtrlShiftZ |
| Format document | AltShiftFAltShiftFAltShiftF |
| Trigger Suggest | CtrlSpaceCtrlSpaceCtrlSpace |
Selection & Multi-Cursor
| Action | Shortcut |
|---|---|
| Select all | CmdACtrlACtrlA |
| Select all occurrences of word | CmdShiftLCtrlShiftLCtrlShiftL |
| Select next occurrence | CmdDCtrlDCtrlD |
| Add cursor above | CmdAltUpCtrlAltUpCtrlAltUp |
| Add cursor below | CmdAltDownCtrlAltDownCtrlAltDown |
| Add cursor at click | AltClickAltClickAltClick |
| Column (box) selection | AltShiftDragAltShiftDragAltShiftDrag |
| Expand selection | AltShiftRightAltShiftRightAltShiftRight |
| Shrink selection | AltShiftLeftAltShiftLeftAltShiftLeft |
Search & Replace
| Action | Shortcut |
|---|---|
| Find | CmdFCtrlFCtrlF |
| Replace | CmdHCtrlHCtrlH |
| Find in files | CmdShiftFCtrlShiftFCtrlShiftF |
| Replace in files | CmdShiftHCtrlShiftHCtrlShiftH |
| Find next | CmdGF3F3 |
| Find previous | CmdShiftGShiftF3ShiftF3 |
Terminal
| Action | Shortcut |
|---|---|
| Toggle terminal | Ctrl`Ctrl`Ctrl` |
| New terminal | CtrlShift`CtrlShift`CtrlShift` |
| AI command in terminal | CmdKCtrlKCtrlK |
| Copy in terminal | CmdCCtrlShiftCCtrlShiftC |
| Paste in terminal | CmdVCtrlShiftVCtrlShiftV |
Editor Management
| Action | Shortcut |
|---|---|
| Split editor right | Cmd\Ctrl\Ctrl\ |
| Focus 1st editor group | Cmd1Ctrl1Ctrl1 |
| Focus 2nd editor group | Cmd2Ctrl2Ctrl2 |
| Toggle sidebar | CmdBCtrlBCtrlB |
| Toggle panel | CmdJCtrlJCtrlJ |
Debug
| Action | Shortcut |
|---|---|
| Start / Continue debugging | F5F5F5 |
| Stop debugging | ShiftF5ShiftF5ShiftF5 |
| Step over | F10F10F10 |
| Step into | F11F11F11 |
| Step out | ShiftF11ShiftF11ShiftF11 |
| Toggle breakpoint | F9F9F9 |
Display
| Action | Shortcut |
|---|---|
| Toggle full screen | CtrlCmdFF11F11 |
| Zoom in | Cmd=Ctrl=Ctrl= |
| Zoom out | Cmd-Ctrl-Ctrl- |
| Show Explorer | CmdShiftECtrlShiftECtrlShiftE |
| Show Search | CmdShiftFCtrlShiftFCtrlShiftF |
| Show Source Control | CtrlShiftGCtrlShiftGCtrlShiftG |
| Show Extensions | CmdShiftXCtrlShiftXCtrlShiftX |
No shortcuts found. Try a different search term.
Frequently Asked Questions
What makes Cursor shortcuts different from VS Code?
Cursor adds AI-specific shortcuts on top of standard VS Code keybindings. The key additions are Cmd/Ctrl+K for inline AI editing, Cmd/Ctrl+L for AI chat, and Cmd/Ctrl+I for Composer. All other VS Code shortcuts work the same way.
How do I use Cursor's inline AI editing?
Select code and press Cmd+K (Mac) or Ctrl+K (Windows/Linux), type your instruction describing what you want to change, and press Enter. Cursor will generate an inline diff that you can accept with Tab or reject with Escape.
How do I open the AI chat in Cursor?
Press Cmd+L (Mac) or Ctrl+L (Windows/Linux) to open the AI chat panel. You can also select code first and then press Cmd/Ctrl+L to ask about the selected code.
Can I use my VS Code keyboard shortcuts in Cursor?
Yes. Cursor is built on VS Code and supports all VS Code keybindings. You can import your keybindings.json file from VS Code, and any custom shortcuts or extensions that modify keybindings will work the same way.
How do I accept or reject AI suggestions in Cursor?
Press Tab to accept an AI suggestion and Escape to reject it. This applies to both inline completions and AI-generated code edits from Cmd/Ctrl+K.