docs/features/search-replace.md
Ctrl+F to open the search prompt.Ctrl+R to open the search and replace prompt.The search toolbar shows toggle buttons for:
When regex mode is enabled, the replacement string supports capture groups: $1, $2, or ${name} for named groups. For example, searching for (\w+): (\w+) and replacing with $2: $1 swaps the two words around the colon.
The replacement also interprets the standard escape sequences \n (newline), \t (tab), \r (carriage return), and \\ (literal backslash), so you can insert line breaks or indentation. Plain-text (non-regex) replacement treats these as literal characters.
In regex mode, ^ and $ anchor at line boundaries, so an anchored pattern matches on every line.
Run Clear Search Highlights from the command palette to remove the active search highlights from the buffer.
Use "Search and Replace in Project" from the command palette to search across all git-tracked files in the project. Press Alt+Enter to replace all matches across the project. Works with unsaved buffers and large files, up to 10,000 results.