Highlighting a String and the Find Function
You can find specific text in Source views either by highlighting a string, or through the Find function.
When you click on some continuous string and it highlights, all other matching strings in that view are highlighted also. You can scroll through the text to find all other occurrences of the string. To remove the highlighting, simply click in any open space.
To activate the Find function, enter Ctrl-F or select Find from the Edit menu.
If you select text in the Source view before activating the Find function, the selected string is loaded into the search text box.
![](../TotalView/images/source_view_select_text1.png)
results in
![](../TotalView/images/source_view_select_text2.png)
The
Find function tells you how many matching strings it has found in a given file, lets you easily move to the Next
![](../TotalView/images/source_view_find_function_next.png)
(Ctrl-g) or Previous
![](../TotalView/images/source_view_find_function_prev.png)
(Ctrl-Shift-g) occurrence, and allows you to make the search case sensitive
![](../TotalView/images/source_view_find_function_case.png)
or whole word
![](../TotalView/images/source_view_find_function_word.png)
.
You can also activate the
Wrap Search button,
![](../TotalView/images/source_view_find_function_wrap.png)
, to wrap back to the beginning of the file after the last instance is reached.
The advantages of the Find function over simple highlighting are:
![*](p4-bullet.jpg)
In a large file, the Next and Previous controls save you tedious scrolling.
![*](p4-bullet.jpg)
The search can be refined using the case sensitive and whole word switches. Highlighting always applies to whole strings whereas
Find can look for partial strings, such as “eval” rather than “evaluate”.
![*](p4-bullet.jpg)
If you move to another file in the Source view, the search is applied to that file so you can look for the string in the new file.
Previous search strings are saved in the dropdown menu at the end of the text field, and these are saved between debugging sessions, as is the state of the case sensitive and whole word buttons.
To close the Find function, press Esc or click the X at the right end of the window.