Find & Replace

Search your file with match counting, regex support, and replace operations.

Opening the Find Bar

Press Cmd F to open the Find bar. It slides in below the breadcrumb bar. Press Cmd Option H to open Find with the Replace row already expanded.

Find and Replace bar with search and replace fields
The Find bar with replace row expanded, showing match count and navigation.

Finding Text

Type your query in the search field. Matches are highlighted in the editor and the counter shows your position (e.g. "3 of 12"). If there are no matches, the counter shows "No results".

ActionShortcut
Open FindCmd F
Find NextCmd G or Return
Find PreviousCmd Shift G
Close FindEscape

Navigation wraps around — after the last match, Find Next goes back to the first. The current match scrolls into view automatically.

Search Options

Case Sensitivity

Click the Aa button to toggle case-sensitive matching. By default, search is case-insensitive. When active, the button appears highlighted.

Regular Expressions

Click the .* button to enable regex mode. This uses full NSRegularExpression syntax — useful for pattern matching like \d+px to find pixel values or fill="[^"]*" to find all fill attributes.

Replacing

Click the disclosure triangle at the left of the Find bar, or press Cmd Option H, to reveal the Replace row.

Both buttons are disabled when there are no matches.

Tip: Use regex Find & Replace for batch edits — for example, find ##\s+ to locate all h2 headings, or \[([^\]]+)\]\([^\)]+\) to find all Markdown links.