You can search for all instances of a string within a file
that is open in the Remote C/C++ Editor.
About this task
Note: This feature is available
only␠when editing z/OS® UNIX files, local files in a z/OS UNIX subproject,
PDS members, or sequential data sets.
Procedure
To find all instances of a string within a file that
is open in the Remote C/C++ Editor, complete the following steps:
- Right-click anywhere in the file to open the pop-up menu.
- Select Find All to open the Find
All dialog box.
- In the Search String field, type
the string that you want to search for.
Tip: The
five most recent search strings are saved as items in the Search
String drop-down list. If applicable, you can select one
of these search strings to use in your search.
- In the Options section, select the
checkboxes that are applicable to the search you want to perform:
- Whole word - to specify that you only want the search
string to match the editor content if the editor content is a whole
word. For example, if the search string is str and
the open file contains str and struct strings, only
the str string will match the search string since the editor
is only searching for whole words.
- Case sensitive - to specify that you want the search
to be case-sensitive.
- Regular expression - to specify that you want to use
a regular
expression in the search string. When you select this checkbox, the Whole
Word checkbox is disabled.
- Incremental - to specify that you want the search to
be incremental. As you type characters in the Search String field,
the search is dynamically performed and you do not have to click Find
All to start the search after specifying a search string.
When you select this checkbox, the Scope section
is disabled since the incremental search always searches the entire
file and not selected text.
- In the Scope section, click one
of the following radio buttons:
- All - to specify that you want to search all of the
content within the file.
- Selected text - to specify that you want to restrict
the search to a particular region within the content of the file.
- Specify the number of lines you want to see before and
after each find match in the Number of lines to peek at
before and after matches
- Click Find All to find all occurrences
of your search string in the open file.
The editor collapses
the content of the file to only display lines that contain the specified
search string. You can hover over the collapsed region to preview
the text that it contains.
Tip: To return to the original
text display:
- Right-click to open the pop-up menu.
- Select Show All to show the original
text display within the file.
- Select Peeking at find all results to
view the lines surrounding the Find All results
in the editor.