Searching for a File by Text in the File

See Also

You can do full-language text searches on files. The search criterion can be entered as a substring or a regular expression.

To do a full-text search:

  1. In the Filesystems window, right-click the directory you want to search and choose Find from the contextual menu. You can search all files in the displayed filesystems by choosing Edit and choosing Find in Files.
  2. Click the Full Text tab in the Find in Files dialog box.
  3. Click the Substring or Regular Expression radio button. Then type the search criterion in the corresponding field.

    If you select Substring, you can select Match Case to limit the search to items with the exact combination of upper-case and lower-case characters. You can select Match Whole Words Only to exclude matches when the search text makes up only part of the word.

  4. Click Search.

Results are displayed in the Search Results window as nodes.

If you select one of these nodes, a Search Details panel appears, showing the positions where the search text appears in the file. Double-click one of these entries to open the file in the Source Editor. The file opens with the search text highlighted. The insertion point is placed just after the selected occurrence of the search text.

Click Show All Details to print a complete list of occurrences of the search text in the Output window.

Click Show in Filesystems to open the Filesystems window with the file's node selected.

See Also
Searching for a File by Object Name
Searching for a File by Type
Searching for a File by Date
Searching for a File by VCS Status

Saving and Reusing a Search Criterion
Modifying an Existing Search Criterion
Searching With a Combination of Criteria
Search Results Window

Legal Notices