Finding and Replacing Text in Source Files

To find and replace text in the Editor:

  1. In the Repository Browser, double-click a source file. The file opens in the Editor.
  2. Right-click and select Find or click Edit > Find The Find and Replace dialog opens.
  3. Click the tab for the operation you want to perform. The find functionality in the Find tab is bidirectional. You can search up or down, and specify if you want the search to wrap as well as match the whole word or the case. The find functionality in the Replace tab is unidirectional. From both tabs you can specify the search mode, i.e. whether to search for plain text, regular expressions and wildcards.
    Note: The remaining steps assume that you want to both search and replace.
  4. In the Find What box, type the search criterion. Check the necessary check boxes.
  5. In the Replace With box, select the replacement text. You can select text strings from previous replace operations or type a new replacement text. If you have selected to search for regular expressions, click the button next to the box to display a list of elements you can insert in the replacement text field.
  6. Click Find Next. When the search finds a match, click Replace. Click Find Next again to find the next match, or click Replace All to replace all matching text.