Cursor Basics
Cursor Keyboard Shortcuts: The Cheat Sheet
The Cursor shortcuts to learn first: Tab accepts autocomplete, ⌘CtrlK makes an inline edit, ⌘CtrlI or +L opens the AI side panel, ⌘E toggles the agent layout and ⇧⌘S opens a side chat. Use @ inside any prompt to add files, folders, docs or web context. Confirm exact bindings in Keyboard Shortcuts settings.
On this page
What are the most important Cursor shortcuts?
A handful of bindings cover most of the day, and the table below has them. These are the current documented defaults (macOS keys; Windows/Linux generally swap Cmd for Ctrl); your exact keys live in Cursor's Keyboard Shortcuts settings.
- Action
- Accept suggestion
- Default shortcut
- Tab
- What it does
- Accept the inline autocomplete (often a whole block)
- Action
- Accept next word
- Default shortcut
- Cmd + →
- What it does
- Take the suggestion one word at a time
- Action
- Inline edit
- Default shortcut
- Cmd + K
- What it does
- Edit the current selection in place
- Action
- Toggle AI side panel
- Default shortcut
- Cmd + I or Cmd + L
- What it does
- Open/close the chat-and-agent side panel
- Action
- Toggle agent layout
- Default shortcut
- Cmd + E
- What it does
- Switch the agent-focused window layout
- Action
- Mode menu
- Default shortcut
- Cmd + .
- What it does
- Pick Agent / Ask / custom modes
- Action
- Loop between models
- Default shortcut
- Cmd + /
- What it does
- Cycle the active AI model
- Action
- Open a side chat
- Default shortcut
- Shift + Cmd + S
- What it does
- Spin off a tangent without derailing the main agent
- Action
- Add selection as context
- Default shortcut
- Cmd + Shift + L
- What it does
- Send the selected code to chat
- Action
- Add context
- Default shortcut
- @ in any prompt
- What it does
- @Files, @Folders, @Docs, @Web
| Action | Default shortcut | What it does |
|---|---|---|
| Accept suggestion | Tab | Accept the inline autocomplete (often a whole block) |
| Accept next word | Cmd + → | Take the suggestion one word at a time |
| Inline edit | Cmd + K | Edit the current selection in place |
| Toggle AI side panel | Cmd + I or Cmd + L | Open/close the chat-and-agent side panel |
| Toggle agent layout | Cmd + E | Switch the agent-focused window layout |
| Mode menu | Cmd + . | Pick Agent / Ask / custom modes |
| Loop between models | Cmd + / | Cycle the active AI model |
| Open a side chat | Shift + Cmd + S | Spin off a tangent without derailing the main agent |
| Add selection as context | Cmd + Shift + L | Send the selected code to chat |
| Add context | @ in any prompt | @Files, @Folders, @Docs, @Web |
Documented defaults as of July 2026 (cursor.com/docs/reference/keyboard-shortcuts); verify in Cursor → Keyboard Shortcuts.
Of the ten, four carry a normal day: Tab, ⌘K, ⌘I or ⌘L, and @ inside the prompt. Learn those on the first morning and leave the rest where they are. The other six answer questions you have not had yet, which is an argument for meeting them later rather than for skipping the table.
Two of the six are worth knowing about before you need them, because nobody stumbles into either one. Cmd+. opens the mode menu and Cmd+/ loops between models, and both change what the next request does more than any amount of prompt rewording will. People who never find them run one model in one mode for months, which is, I think, the most ordinary way a Cursor install stays half-used.
Treat the table as documented defaults and the Keyboard Shortcuts screen as the authority. Cursor ships quickly, and internal command IDs and context keys can change between releases, so any cheat sheet, this one included, is a snapshot of one version. Search that screen by action rather than by key when something here does not match your build.
This is covered hands-on in Cursor First Hour — 4 short modules, free to read.
Do Cursor's shortcuts work the same on Windows and Linux?
Mostly, by swapping Cmd for Ctrl. Tab stays Tab, CtrlK makes an inline edit, CtrlI or CtrlL opens the AI side panel, Ctrl+. opens the mode menu, and ⇧⇥ rotates modes on every platform. The table above prints the macOS keys.
The swap holds right up until a two-step chord, and there it is not a swap at all. Cursor moved the chord leader off ⌘CtrlK, since ⌘K now drives inline edit, and the staff answer on the forum gives the replacement as ⌘R on Mac and CtrlM on Windows and Linux. Cursor's own help page muddies that: its Windows and Linux route to the shortcuts screen starts with CtrlR, not CtrlM. Test both once on the machine in front of you and keep whichever your build answers to.
That is probably the only line worth writing down for a mixed fleet. Everything else survives the platform change, so one shared cheat sheet works as long as it carries both leaders instead of one.
How do I customize or fix Cursor keybindings?
Everything is remappable. Cursor's docs state that all keybindings, including Cursor-specific features, can be changed in Keyboard Shortcuts settings. Two things trip up VS Code arrivals: Cursor moved the two-step chord leader from ⌘CtrlK to ⌘R (Mac) / CtrlM (Windows/Linux) because ⌘K now drives inline edit, and imported bindings sometimes carry broken when conditions that silently never fire.
Whether to remap anything at all depends on who else reads your keystrokes. My first answer used to be to rebind whatever felt wrong in the first week. I would narrow that now: remap the keys that collide with something you press all day, and sit out the ones that are merely unfamiliar, because each remap is a private dialect that the docs and whoever pairs with you both describe some other way.
When a binding does nothing at all, the answer is usually that another command won the key rather than that the binding itself is wrong. Cursor has a shortcut troubleshooting log for exactly that: it prints every rule a keystroke matched and which binding took it.
For the full customization reference (keybindings.json, when-clause syntax, discovering context keys and copy-paste recipes), see Cursor keybindings.json: when clauses, chords and recipes.
Which shortcut should I use when?
Pick the surface by how much the AI is allowed to touch. The list below maps each surface to the work it's right for.
- Reading or planning, no changes → chat / Ask (Ctrl⌘L).
- One precise change to code you're looking at → inline edit (Ctrl⌘K).
- A change across files or that runs commands → agent (Ctrl⌘I).
The list sorts by blast radiusHow much breaks if a change goes wrong; the scope of potential damage. Press Enter for the full definition., which is the right first cut. What it leaves out is that your written conventions do not reach all three surfaces equally. Cursor's rules documentation says rules do not affect Cursor TabCursor's original autocomplete: multi-line, edit-aware suggestions you accept with the Tab key. Press Enter for the full definition., and User Rules apply to Agent chat rather than to inline edit on ⌘K. Test a convention you depend on in the agent panel, since that is the surface reading the most of them.
Two more bindings belong in this decision, though neither is really about editing. ⇧⌘S opens a side chat, which since Cursor 3Cursor's agent-forward interface (also called the agent window or Glass), built to run and supervise many agents at once rather than edit one file. Press Enter for the full definition..11 lets a question run alongside an agent that is already working instead of interrupting it. ⌘⇧D toggles Design ModeA way to point at an element in Cursor's built-in browser and change it directly, instead of describing it in words. Press Enter for the full definition., and that one only does anything in the Agents WindowCursor's surface listing your agent runs; open a run to read its diff and search transcripts from the command palette. Press Enter for the full definition. with your app open in the browser, so pressing it in the IDE looks like a broken shortcut.
⌘E toggles the agent-focused layout, which I would try once before concluding the side panel is too narrow to work in.
For the full mental model of when to reach for each, see the Ask vs Agent vs ComposerCursor's own fast coding model, tuned for the editor and priced well below frontier models; the recommended day-to-day model for executing a plan. Press Enter for the full definition. guide.
Is there a shortcut for switching modes in the Cursor CLI?
Yes. In the Cursor CLICursor's command line: the full agent, all modes and models, in the terminal and pipeable into scripts and CI. Press Enter for the full definition. terminal, ⇧⇥ cycles through the run modes so you don't have to leave the keyboard: auto-run-all-commands, plan mode, ask mode, debug mode, and plain agent mode. The terminal also exposes slash commandsSaved multi-step prompts you trigger from the / menu, such as run tests, fix CI or open a pull request. Press Enter for the full definition. to create rules, skills, and sub-agents on the spot (plus others like /MCP login).
None of that is CLI-only, and the overlap is the useful bit here. ⇧⇥ rotates modes from the chat input in the editor too, and Cmd+. opens the picker when you would rather read the list than cycle through it. So the week you spend in the terminal carries over the moment you open the IDE.
You can choose different modes by doing ⇧⇥ - auto run all commands, plan mode, ask mode, debug mode.
Frequently asked questions
How do I change Cursor's keyboard shortcuts?
Open the command palette and run Preferences: Open Keyboard Shortcuts (or edit keybindings.json directly via Preferences: Open Keyboard Shortcuts (JSON)). Because Cursor is built on VS Code, the keybindings UI and file format are the familiar ones.
What is the Tab shortcut in Cursor?
Tab accepts the current AI autocomplete suggestion. Cursor's autocomplete is multi-line and edit-aware, so Tab often applies a whole block, not just one line. ⌘→ accepts just the next word when you want part of a suggestion.
Why do my Cmd+K chords behave differently than VS Code?
Cursor uses ⌘K for inline edit (and the terminal prompt bar), so two-step chords moved to a new leader: ⌘R on Mac, CtrlM on Windows/Linux. ⌘K ⌘S becomes ⌘R ⌘S. The leader itself is configurable; see the keybindings.json guide.
How do I add a file to the prompt?
Type @ in any chat or agent prompt and pick @Files, @Folders, @Docs or @Web. Scoping context with @ beats making the AI search the whole repo.
Are Cursor's shortcuts the same on Windows and Linux?
Almost all of them: swap Cmd for Ctrl and Tab, inline edit, the AI side panel, the mode menu and ⇧⇥ all behave the same. The exception is the two-step chord leader. It is ⌘R on Mac, and the sources disagree on Windows and Linux: a Cursor staff answer gives CtrlM while the help page's route to the shortcuts screen starts with CtrlR. Test both on your build.
Which Cursor shortcuts should I learn first?
Tab to accept a suggestion, ⌘CtrlK for an inline edit, ⌘CtrlI or +L for the AI side panel, and @ inside a prompt to attach context. Add Cmd+. (mode menu) and Cmd+/ (loop between models) once the first four are habit, because those two are the ones people never discover on their own.
Sources & last verified
Cursor ships frequently. Last updated July 28, 2026.
Keep reading
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.