2 min lesson
Accept a matching Tab suggestion and reject a drift
Practice Tab on one real case. Check the result before moving on.
Check your understanding
Complete the walkthrough "Accept a matching Tab suggestion and reject a drift".
Outcome: The first two suggestions matched the rename. The CSS class change did not. If you accept an unwanted suggestion, Cmd+Z restores the prior text.
Accept a matching Tab suggestion and reject a drift
Editing in flow with Tab suggestions
5 steps · ~3 min
Read the ghost → Tab to accept → Tab again → Decide on the drift → Verify in SCM
Read this walkthrough as text
Accept a matching Tab suggestion and reject a drift
Editing in flow with Tab suggestions
DoRename the prop to
matchCount in the interface by hand so Cursor has concrete local intent.SeeA gray suggestion appears under the function signature and proposes the same rename at the next occurrence.
DoPress Tab to accept, then Tab again at the next occurrence.
SeeThe rename lands at both intended occurrences. The next suggestion appears at the next edit point without moving you away from the code.
Type
Tab now proposes renaming the CSS class `results-count` too, a stylesheet contract your rename never included.DoReject it and keep typing. That suggestion changes the task instead of continuing it.
SayWhy keep two and drop one?
SeeThe first two suggestions matched the rename. The CSS class change did not. If you accept an unwanted suggestion, ⌘Z restores the prior text.
Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.
Learn more
Optional practice
Test yourself on Accept a matching Tab suggestion and reject a drift
QWhat should be true when you finish the Tab practice?