Inline edit
Inline edit has been replaced, so learn how Cmd+K now sends your selection to Agent, how to use Tab, and how to review and undo changes.
-
What Happened to Inline Edit and Cmd+K in Cursor? Inline edit is gone. Level 1: Basic prompts
- 1Select code
- 2Cmd+K or Cmd+L
- 3Describe the change
- 4Review the diff
-
How Do You Review and Undo What Cursor's Agent Changed? Agent applies its edits as it works, and you review them in the diff view. Level 1: Basic prompts
- Rejectthe latest edits are wrong
- Restore Checkpointthe run went wrong, keep the chat
- Gitpermanent history you control
-
How Do You Get the Most From Cursor Tab? Tab is Cursor's autocomplete, and it does more than finish the line. Level 1: Basic prompts
- 1You make an edit
- 2Tab suggestsfrom recent edits, nearby code, linter errors
- 3Tab accepts
- 4Tab jumpsto your next edit, maybe another file
Then keep editing
Inline edit was replaced
This lesson used to teach the Cmd+K prompt box. That box is gone. Cursor's help says Cmd+K and Cmd+L now open Agent with your selected lines referenced in the input. You still get a focused change and a diff to review, but the full agent is doing the work, so say plainly if it should stay within those lines.
Three ways to make a small change
Choose by how much thinking the change needs. Tab is fastest when you've already started typing and the rest is predictable. A selection sent to Agent suits a change you can describe in a sentence. Typing it yourself is still best when you know exactly what to write. Whichever you use for Agent, the diff view is where you accept or reject it.
What does Cmd+K do in Cursor now?
In the editor, Cmd+K or Ctrl+K sends your selection to Agent in a new chat, the same as Cmd+L. In the Agents Window, it opens the command palette, where you can search past conversations.
How do I accept or reject changes in Cursor?
Press Cmd+Return to accept all suggested changes, or Cmd+Shift+Backspace to reject all, using Ctrl on Windows and Linux. You can also reject individual changes in the diff view.
How do I accept part of a Tab suggestion?
Press Cmd+Right Arrow on Mac, or Ctrl+Right Arrow on Windows and Linux, to accept one word at a time. Press Tab to accept the whole suggestion, and Escape to reject it.
Can I undo what Cursor's agent did?
Yes. Hover over an earlier message and click Restore Checkpoint to revert files to that point. It doesn't remove messages from the conversation, and checkpoints are separate from Git.