Replace in Files (Edit Menu)


 

The Replace in Files selection of the Edit menu searches for specified text in matching source files in the program, project, or directory specified and updates it with a new value. The results of the replacement are displayed in the selected output Find/Replace Window.

 

 

replaceinfiles.png

 

Replace in Files Dialog Items

Find

Type or insert the information you want to find.

Replace with

Type or insert the information you want to substitute.

In File Types

Specifies the names and extensions of source files to search. Multiple specifications are delimited with a semi-colon or a comma (i.e., *.jpg;*.gif,*.bmp). When searching the current program or project, this field is disabled

Starting Folder

Identifies the directory containing the files to be searched. This field is only active if the search type is "Directory".

Revision Stamp

Allows use and specification of a user defined revision string mask. The mask may contain the following characters:

 

Mask

Meaning

%H

Hour

%N

Minute

%S

Second

%D

Day

%M

Month number

%MM

Month abbreviation (three letters)

%Y

Four digit year.

%YY

Two digit year.

 

Example masks:

 

%H:%N:%S %M/%D/%Y

%D.%MM.%YY

%MM.%D.%Y

 

The date mask also supports special commands to control the position if the inserted text:

 

Command

Meaning

<Cnn>

Column designation where nn is the column the stamp will be inserted. If no column is specified, the stamp will be inserted at the end of current line with a leading space.

<Rnn>

Ignored. The stamp will always be placed on the line with a replacement.

 

Example

 

<C65>// 10.5 BK %M.%D.%YY

 

This string willl result in a revision stamp starting at column 65 with the text string similar to "// 10.5 BK 7.20.23" but with the current date.

Search
Identifies where the IDE should look for matching files.
Search Subdirectories
Instructs the IDE to also search any subordinate directories found. The option is only available when doing a "Directory" search.
Search Folders

Instructs the IDE to also search files in any defined project folders. This option is only enabled when doing a "Project" search.

Used Saved File Versions
When files are open for editing, the IDE will seach that version of the file rather than the version on disk. This option disables this feature and causes the IDE to only search disk files.
Exclude Comment Lines
Instructs the IDE to ignore comment lines while searching.
Match Case

Finds only those occurrences with the exact combination of uppercase and lowercase letters specified in the What box.

Whole Word Only

Finds occurrences of strings that are white space (line feed, tab or space) delimited.

 

 

See also: Replace, Using the Editor



PL/B IDE Studio Help Find in Files (Edit menu) Goto (Edit menu)