Find and replace
The find and replace feature helps you find and replace any text including words, word parts, phrases, or even longer parts of a text in the editor. It is especially useful when there is a long topic containing certain words in different contexts.
As you can replace a chosen instance or all searched phrases with your desired phrase in one click, it makes editing a long text much easier. Find and replace may also help to ensure the cohesion of an edited piece of code while renaming a variable or a function.
- Click the find and replace button
on the toolbar or use the Ctrl+F on PC or Cmd+F on Mac shortcut to invoke the search panel and find and replace desired words or phrases.
- Type or paste your query into the find field
- Click the Find button.
The number of times your searched phrase has appeared throughout the text will be shown next to it in the find field and your searched phrase will be highlighted in the text. - Move to each instance by clicking the up and down arrows next to the find button to view all results.
After finding your searched phrases, you can replace one or all of them with your desired one as follows:
- Type or paste your intended phrase in the Replace field.
- Click Replace to replace the selected phrase with your intended one, or click Replace all to replace all searched phrases with your desired phrase simultaneously.
Find and replace settings
You can set the find and replace to look for any match case or whole words only to match the exact words and not just a part of it. These settings are disabled by default but you can activate them based on your needs.
- Click the settings button on the bottom left of the search panel.
- Enable Match case, Whole words only based on your needs.
★ | Note: By using the "match case" option you will allow for finding any words matching the searched term even if the searched term matches only a part of that particular word. The "whole words only" option, however, finds only the words/phrases entirely matching the searched term; that is matching text beginning and ending with spaces. In other words, the match case option is more inclusive. |
