Search & Replace
Find, replace, and navigate content in documents
⏱️ 5 minutes
Open Search Panel
Shortcut: Ctrl+F (search) / Ctrl+H (search and replace)
The search panel appears at the top of the editor area.
Search Options
Three option buttons on the right side of the search input:
| Button | Function | Description |
|---|---|---|
| Aa | Case Sensitive | Match case when enabled |
| |W| | Whole Word | Match complete words only |
| .* | Regular Expression | Support regex search |
Search Operations
- Type a search keyword — the editor highlights all matches in real-time
- Match count displays on the right side of the search box as
current / total(e.g.,3 / 15) - Press
Enterto jump to the next match - Press
Shift+Enterto jump to the previous match - You can also click the up/down arrow buttons to navigate
Search History
- Click the search input to show a search history dropdown
- Use
↑↓keys to select history entries, pressEnterto confirm - Supports clearing search history
Replace Operations
- Press
Ctrl+Hto open the search and replace panel (or click the expand button) - Enter replacement text in the replace input
- Click Replace: Replaces the current match and jumps to the next
- Click Replace All: Replaces all matches at once
Regex Replace
With regex mode enabled, you can use $1, $2, etc. in the replacement text to reference capture groups.
Chinese Input Method Compatibility
The search panel is optimized for Chinese input methods: search is not triggered during pinyin input, only after character selection is complete, avoiding interference during input.
Close Search Panel
Press Esc to close the search panel.
Next Steps
- Sidebar & Outline — Use the outline for quick document navigation
- Keyboard Shortcuts — View all search-related shortcuts