Searching for text in files

You can search for text in files to quickly find and open files you need to work with. For example, to change the value for a product name variable, you can search for the variable in the source code files to identify files that need to be updated with the new value.

Keep the following in mind.

1. Choose Edit > Find in Files.

The Find in Files window opens.

2. In the Search area, enter or select the Search Criteria.

Tip: See Text search examples for examples using wildcards and regular expressions.

3. Select any Refine Search options to further refine the search.

Tip: File extension lists are organized by groups. You can add file extensions to existing groups and create new groups to quickly select file types in searches. See Grouping file extensions to find related file types.

4. Click Search.

Files with content that matches the search criteria are displayed in the Results area. If you did an indexed search, a relevance value indicates how closely the results match the search criteria. Click Show more results to view additional results if the number to display is limited.

Note: You can only preview content for text files. To view content for a binary file, open it in the associated application.

5. Click Reset to clear all options and perform a new search.

6. Click Close when you finish.

grep