To find text in a single file
- Select Edit | Find and Replace | Find... menu item.
- Enter the string to be found in the Find what input.
- If the search will be case sensitive, set the Match case option.
- If the search will be for a whole word, i.e. there will be whitespace, the beginning or the end of line on either side of the string being searched for, set the Match whole word option.
- If the search string is a Regular Expression, set the Use regular expression option.
- If the search should move up the document from the current cursor position rather than down the document, set the Search up option.
- Click Find button to find next occurrence of the string or click Mark All to bookmark all lines in the file containing the string.
To find text within a selection
- Select text to be searched.
- Select Edit | Find and Replace | Find... menu item.
- Enter the string to be found in the Find what input.
- If the search will be case sensitive, set the Match case option.
- If the search will be for a whole word, i.e. there will be whitespace, the beginning or the end of line on either side of the string being searched for, set the Match whole word option.
- If the search string is a Regular Expression, set the Use regular expression option.
- If the search should move up the document from the current cursor position rather than down the document, set the Search up option.
- Click Mark All to bookmark all lines in the selection containing the string.
To find and replace text
- Select Edit | Find and Replace | Replace... menu item.
- Enter the string to be found in the Find what input.
- Enter the string to replace the found string with in the Replace with input. If the search string is a Regular Expression then the \n backreference can be used in the replace string to reference captured text.
- If the search will be case sensitive, set the Match case option.
- If the search will be for a whole word, i.e. there will be whitespace, the beginning or the end of line on either side of the string being searched for, set the Match whole word option.
- If the search string is a Regular Expression, set the Use regular expression option.
- If the search should move up the document from the current cursor position rather than down the document, set the Search up option.
- Click Find button to find next occurrence of string and then Replace button to replace the found string with replacement string or click Replace All to replace all occurrences of the string without prompting.
To find text in multiple files
- Select Edit | Find and Replace | Find in Files... menu item.
- Enter the string to be found in the Find what input.
- Enter the wildcard to use to filter the files in the In file types input.
- Enter the folder to start search in the In folder input.
- If the search will be case sensitive, set the Match case option.
- If the search will be for a whole word, i.e. there will be whitespace, the beginning or the end of line on either side of the string being searched for, set the Match whole word option.
- If the search string is a Regular Expression, set the Use regular expression option.
- If the search will be carried out in the root folder’s sub-folders, set the Look in subfolders option.
- The output of the search results can go into two separate panes. If the output should go into the second pane, select Output to pane 2 option.
- Click Find button.