A key word can be found and/or replaced by selecting Find /Replace from the Edit menu, or by pressing the Ctrl + F keys, or by clicking on the toolbar.
Finding a key word
To find a key word:
Select "Edit" > "Find/Replace..." from the menu bar. The "Find/Replace" dialog box appears.
Enter the key word.
Click on the "Find" button. If the key word is found, it is highlighted in the editor window.
Replacing a character string
To replace a character string:
Select "Edit" > "Find/Replace" from the menu bar. The "Find/Replace" dialog box appears.
Enter the search target character string in the "Find" field, and the replacement character string in the "Replace with" field.
Click the "Replace" button to replace text that has been found.
The items in the "Find/Replace" dialog box are as follows:
Item | Description |
---|---|
Forward | A downward (forward) search is performed starting from the current cursor position. |
Backward | An upward (backward) search is performed starting from the current cursor position. |
All | The entire file is searched. |
Select lines | The selected range in the file is searched. |
Case sensitive | Uppercase and lowercase letters are treated as different characters in a key word search. |
Wrap search | The search operation is performed until it reaches the end of the file, and then it continues at the start of the file. The search operation is repeated cyclically until it is canceled. |
Whole word | The search target is a word that exactly matches the key word. |
Incremental | The cursor is positioned at a matching character string in the file as soon as each character in a character string search target is entered. |
Regular expressions | The specified key word is assumed to be a regular expression. |
When the Find /Replace button is clicked, the character string that was found to match is replaced, and the cursor is moved to the next matching character string.
When the Replace All button is clicked, all matching character strings are replaced.
If the Incremental option is selected, the search is conducted as soon as the search string is input, without the use of the Find button.