# Find and Replace

> Search and replace text in Warp's code editor with regex, case sensitivity, and smart case preservation.

- 网址：https://funcoding.ai/agents/warp/code/code-editor/find-and-replace/
- 来源：Warp 官方文档原文（英文），MIT 许可，同步于 2026-10-11
- 官方原文：https://docs.warp.dev/code/code-editor/find-and-replace/

---
Warp's code editor includes built-in find and replace with support for regex, case sensitivity, and smart case preservation. Search across a file, jump between matches, and replace text with automatic casing adjustments for PascalCase, camelCase, and hyphenated patterns.

## Find

Press `⌘+F` on macOS or `Ctrl+Shift+F` on Windows and Linux to open the find menu. As you type, all matches in the file are highlighted, and the match closest to your cursor is selected.

* Press `Enter` or use the down arrow to jump to the next match
* Press `Shift+Enter` or use the up arrow to go to the previous match
* Click **Select All** to highlight all matches and close the menu

You can toggle regex and case-sensitive search options directly in the query editor.

## Replace

Click the dropdown to the left of the find menu to open the replace options.

* Press `Enter` to replace the currently selected match
* Use **Replace All** to replace all matches

Toggle **Preserve Case** to keep the original casing of replaced text. Case is preserved in text that contains PascalCase, camelCase, hyphens, and underscores. For example:

* Replacing “old” with “new” will turn “Old” into “New” and “OLD” into “NEW”
* Replacing “oldValue” with “NewValue” will result in “newValue”
* Replacing “OldValue” with “newValue” will result in “NewValue”
* Replacing “my-Old-VALUE” with “my-new-value” will result in “my-New-VALUE”
