Skip to lesson
Exit
Make one small change and review the diff1 / 1

2 min lesson

Change one label with Inline Edit and read every line

Practice Agent or Inline Edit on one real case. Check the result before moving on.

Check your understanding

Complete the walkthrough "Change one label with Inline Edit and read every line".

Outcome: Source Control lists one changed file, EmptyState.tsx, with one modified line. The empty state now renders 'No matches yet', and nothing outside the scope moved.

Change one label with Inline Edit and read every 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
Change one label with Inline Edit and read every line
Inline edit, single file
SayThe search empty state should read 'No matches yet' instead of 'No results found'. It lives in one file, and the filter logic must stay as it is.
Typesrc/components/search/EmptyState.tsx
TypeCmd+K, then "Replace 'No results found' with 'No matches yet'"
DoSelect only the label line and open Inline Edit. This change touches one region in one file.
DoRead the inline diff line by line before you accept it.
SeeThe single hunk changes the string. The surrounding JSX and filter function are byte-for-byte the same.
DoAccept the edit, trigger a search that returns nothing and open Source Control.
SeeSource Control lists one changed file, EmptyState.tsx, with one modified line. The empty state now renders 'No matches yet', and nothing outside the scope moved.

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

Learn more

Optional practice

Test yourself on Change one label with Inline Edit and read every line

QWhat should be true when you finish the Agent or Inline Edit practice?

Finish the check to continue.