Searching for Strings
Use the String Searcher to search for
strings of text in specified files.
To search for a string of text:
- Set the scope of your search to either a project or directory:
- Project--Limits the search to those source files you
included as part of the specified Project when it was
created
- Directory--Limits the search to the files
in the specified directory and its subdirectories
- Specify the name of the project or directory you wish to
search. By default, the name of the currently selected project is automatically entered.
- Specify the string that you wish to search for. Use
the toggle to cause the search to be case insensitive. This
version of the WorkShop does not support regular
expressions; only the characters you specify are used.
- You can further narrow the scope of your search by
specifying (by suffix) the types of files to search.
File types are specified by their suffixes. Items in
the list are separated by a space. You
can add or delete files from this
list.
- You can start the search in two ways:
- Press Return after you enter the string in the String
field.
- Click on the Match control in the String Search
tool bar.
- The results of the search are displayed in the window. Each line
consists of:
- The
name of a file found to contain the string (the file name is a link to the file)
- The line number on which the match was found
- The text of the matched line
- Click on the file name link to
display the file in the WorkShop text editor. You can also use the Next and
Previous tool bar controls to move from match to match.
- To repeat a previous search, choose it from the Query
History list.
To stop a search, click on the
Stop search control in the tool bar.
See also:
- Browsing Class Files
- What Is a Portfolio?
- What Is a Project?