Using the Search Page

The Search page button is in the Project section of the workbook.

By default, there are two panes: a Search view and a Source view. You can search all or part of your project for a pattern that you specify. By default, the entire project is searched.

To search:

  1. We will search for the string 'class'. Type class in the entry field:
  2. Start the search by clicking the flashlight icon at the end of the entry field () or by hitting Enter.
    The icon then turns into a stop sign, which you can use to stop the search. Within one or two seconds, all lines containing a match for your pattern are listed.

Each numbered line returned in the top pane is a file location. The number in brackets is the line number in the source file.

The bottom pane is a Source view, which automatically displays the line selected in the top pane. As you can see, the search has returned all 92 occurrences of the string 'class', including occurrences where class is only part of a larger term, such as payclass, and all the different classes that have been defined in the project.

Clearly, this is not the most efficient way to find the class itself, but it is an exhaustive search that is useful if you want to include comments and variations on a string in your search. To find out how to search for the object, without including variations and comments, see Object-based Searching with the Find Uses page.

Search options can be set by clicking the plus symbol next to the flashlight icon.

To repeat a previous search:

  1. Click the drop-down arrow next to the flashlight icon.
    The drop-down menu contains previous patterns that you have searched.
  2. Select a pattern to rerun a previous search.

Back to More on the IDE