Find and replace in the active file
Find a passage or replace text in the file currently open in Mandarin. The workbench Search surface does not make this a project-wide replace operation.
Establish the target
Open the intended file, check its tab label, and preserve existing edits. If the same term appears in several files, choose the file first. Agent search, file-name navigation, and editor text search have different scopes.
Find and replace
- With the intended editor tab active, choose Replace in file (Command Option F on macOS or Control Alt F in other supported keyboard configurations).
- Enter the text to find in the active editor's search field.
- Press Enter to advance or Shift Enter to move back. Read the surrounding passage, not only the highlight.
- Move to the replacement controls using Tab or Shift Tab. Enter the intended replacement and inspect the selected match before activating replacement.
- Check the resulting text in the editor. For repeated replacements, inspect other affected passages before considering the edit complete.
- Save deliberately and check the persisted file separately. A changed search count or highlighted replacement only describes the editor state.
Escape closes the search strip. If a shortcut does not act on the expected control, check focus instead of repeatedly sending it to the terminal or agent draft.
When the result looks wrong
Check the active tab, exact search text, and current field first. A match in one file says nothing about whether another file contains the term. Preserve the current buffer before attempting broader changes. For repository review, consult the Git diff reference; a search result is not a substitute for reviewing the saved diff.
Continue
The keyboard reference documents strip navigation. The workspace walkthrough establishes the folder and file before searching.