
Hitachi Embedded Workshop User Manual
72
4.5.2
Finding Text in Multiple Files
To search for text in many files:
1. Select [Edit->Find in Files...], select [Find in Files...] from the editor window’s local menu or click the
find in files toolbar button (
). The “Find in Files” dialog box will be displayed (figure 4.3).
Figure 4.3: Find in Files Dialog
2. Enter the text that you want to search for into the “Find” field, or select a previous search string from the
drop-down list box. If you select text before invoking the find operation, the selected text will be
automatically placed into the “Find” field.
3. Enter the file extensions of the files you would like to search into the “In files/types” field. If several
extensions are specified be sure to separate them with a comma (e.g. *.c,*.h).
4. Enter the directory in which you would like to search files into the “Directory” field. Alternatively you
may browse to the desired directory graphically if you click the “Browse…” button.
5.
If you would like to search the directory specified and all directories below it then check the “Search sub
directories” check box. If you just want to search the single directory specified in the “Directory” field
then ensure that this check box is not checked.
6.
If you would like to search for character string as a whole word then check the “Match case” check box.
When this option is not selected, the search will be for any string that is matched by the search string.
7.
If you would like your search to be case sensitive (i.e. to distinguish between upper and lower case
letters) then check the “Match case” check box.
8.
Click “Find” to begin the search. Any matches found will be displayed in the “Find in Files” tab of the
“Output” window. To jump to an instance of the string, double click on the desired entry in the “Output”
window.
4.5.3
Replacing Text
Replacing text is similar to finding text, as discussed in the previous section. The difference is that when the text
is found you have the option to replace it with other text.
To replace text in a file:
1. Ensure that the window, whose contents you want to replace, is the active window.
2. Position the insertion cursor at the point from which you want to start your search.
3. Select [Edit->Replace...], press CTRL+H or select [Replace...] from the editor window’s local menu. A
replace dialog box will be displayed (figure 4.4).
4. Enter the text that you want to search for into the “Find what” field, or select a previous search string
from the drop-down list box. If you select text before invoking the replace operation, the selected text will
be automatically placed into the “Find what” field.