Skip to lesson
Exit
Make One Small Change and Review the Diff1 / 1

2 min lesson

Walkthrough: Inline edit — one label fix you read line by line

Complete "Walkthrough: Inline edit, one label fix you read line by line". Check the final state against the lesson before you move on.

Check your understanding

Complete this walkthrough: Inline edit — one label fix you read line by line.

Outcome: Finish with the result shown in the final walkthrough step.

Inline edit — one label fix you read line by line

Inline edit, single file

7 steps · ~4 min

Open the file → Select the line → ⌘K Inline Edit → Prompt → Read the hunk → Accept → Verify in SCM

Read this walkthrough as text
Inline edit — one label fix you read line by line
Inline edit, single file
SayOne change: the search empty state should read 'No matches yet', not 'No results found'. It lives in one file, and the filter logic behind it stays exactly as it is.
Typesrc/components/search/EmptyState.tsx
Type⌘K → "Reword this string to: No matches yet"
DoSelect just the label line, then open Inline Edit rather than Agent — it's one region in one file.
DoRead the inline diff line by line before you accept it, rather than skimming and hitting accept.
SeeA single hunk: the string changes, and the surrounding JSX and the filter function are byte-for-byte the same.
DoAccept the edit, trigger a search that returns nothing, then open Source Control.
SeeSource Control lists one changed file, EmptyState.tsx, with a single modified line, and the empty state now renders 'No matches yet' — nothing outside scope moved.

Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.

Learn more

Optional practice

Practice: Walkthrough: Inline edit — one label fix you read line by line

QYou've applied it. What actually proves the work is done, not just a plausible answer?

Finish the check to continue.