In the Find in Files dialog, specify the string to search for and what files to search. The Find in Files dialog also provides the following types of files to control the search:
- Files and Directory: The search may be conducted on all files that have been included for analysis or on a subset of files that you specify. Multiple files may be specified by using wildcards or by specifying a list of files separating each file with a “,” comma.
- Options: You can also choose to consider case sensitivity when matching, require matching on whole words, or use regular expressions for matching. For details on searching without regular expressions, see Wildcards Without Regular Expressions. For information on using regular expressions, see Regular Expressions.
- In Code: You can include or exclude searching of strings found in comments, strings, or code statements.
In addition, you can click the Output button to open the Configure Find in Files Output dialog:
- Display full path filenames: If this box is checked, each item in the results shows the full file path. If your files are in a single directory or have unique names, you may want to remove the checkmark from this box to minimize the need for horizontal scrolling of the results.
- Display entity scope of find as [kind: name]: If you put a checkmark in this box, the results show the type and name of the entity that contains each result.
Press the Search button after specifying the search criteria and a list of all occurrences of the string will be displayed in the Search Results window.