The Search for Text Dialog

Top  Previous  Next

This dialog sets complex criteria and parameters for searching text in files. This dialog and the Replace Text dialog have a number of common parameters, which function in the same way in both dialogs. To specify file names, you can use one or several wildcards. Also, the names may contain paths. You can search in more than one file at once by using parameters of the Multi-File Search area.

Element of dialog

Description

String to Search for

Specifies the text string to search for.

Case Sensitive

This box is unchecked by default. Checking this box specifies that the case of the string is to be matched.

Whole Words Only

This box is unchecked by default. If checked, the editor will search only for whole words: the string will be found only if it is enclosed between punctuation or separation characters (spaces, tabulation symbols, commas, quotation marks, etc.).

Regular Expressions

This box is unchecked by default. Checking of this box specifies that the search string is a regular expression.

Global

Search the entire file for the string. Enabled by default.

Selected Text

Search the string in the selected block.

From Cursor

Search from the current cursor position.

Entire Scope

Search from the beginning or end of the file (depending on the search direction). Enabled by default.

Perform Multi-File Search

If this box is checked the editor will search in all project files (see the notes below). If the box is unchecked, then the search will be performed in the current Source window only.

Search All Source Files in Project

If this box is checked the editor will search in all the source files included in the project.

Include Dependency Files

If this box is checked the editor will search in all the source files included in the project and all files on which the source files depend, whether explicitly or implicitly. For C language, these are the header files (*.h).

Search Wildcard(s)

Check this box to search for one or several wildcards specifying the files to be searched. Separate wildcards with semicolons. No quotes are required to denote Windows-style long names. Example: *.txt;*.c;c:\prog\*.h.

This option and the Search All Source Files in Project option act independently of each other: you can search in all files of the project AND in other files that comply with the specified wildcard(s).

Search Subdirectories

If this box is checked the editor will search in subdirectories of all the directories specified by the Search All Source Files in Project option and by wildcards.

Starting Path

Begin search from the directory specified in this text box. This directory serves as the common path and is useful when there are several wildcards such as the following ones:

c:\prog\text\source\*.txt;c:\prog\text\source\*.doc

In this case, make use of wildcards (*.txt;*.doc) and common path

(c:\prog\text\source).

Notes

1. When you search in the file opened in the Source window, then only the window buffer will be searched, not the file on disk.

2. Multi-file search is performed in all source files of the project. Upon finishing, the Multi-File Search Results dialog remains open.