Searching a Project
There are three ways to search a project:
- Live Find is a dynamic search available
in most views. It can be accessed with shortcut keys, and works like most other dynamic
searches by finding text strings to match your criteria in the body of your code. It is
also useful for locating strings that are not necessarily in your source code, for
example, to search for an option in the Options page, you can type a part of the option
name or category in the Live Find entry field and avoid scrolling many
long lists of options.
- The Search page searches within any object, from a single
class to the entire project. (By default, the entire project is searched).
- You can search semantically (an object search, rather than
a string search) using the Find Uses page. Searching semantically means searching for an object,
such as a class, rather than a text string.
Try performing a Live Find using the payroll project.
- Select the Project tab.
- Select the Classes page button.
- Click the Live Find toolbar button
or:
Click mouse button 2 over any part of the background (white space) in the view.
Select Find (Live) from the pop-up menu.
A text entry field appears at the bottom of the view.
- Select the
next to the
employee class to start the search at the top of the view's contents.
- In the text entry box, slowly type 'pa':
- As you type the 'p', the employee class is
highlighted. The Source view also updates with the corresponding code.
- As you type 'a', the
virtual function pay() is highlighted, and the function definition is displayed in the
Source view.
- In the text entry box, remove the 'a'. The results are
updated again, but there is now a pull-down key
to the
right of the text entry box that will take you back to previous searches without retyping
your search string.
- You can move through the list of strings that contain the
letter p by pressing Enter or Ctrl-N to move forward to
the next match and Ctrl-P to move backwards to the previous match.
- Press Esc, or click the small flashlight
icon next to the entry field and select Close from the pop-up menu.
Using the Search Page
Using the Find Uses (Object-based) Search
Back to More on the IDE