4.11. Find and Replace dialogs

The Find and Replace dialog enables you search for, and optionally replace, text in an editor window. Essentially it is the same dialog in two modes, find only, and find and replace. You can switch modes by clicking the Find mode or Find and replace mode buttons in the dialog. By default, matches are case sensitive but matches can appear as part of longer words. You can change the default behavior by setting or clearing the relevant checkboxes in the dialog.

The Find dialog, shown in Figure 4.25, is opened by clicking Search → Find... in the main menu. Type the text to find in the box and click the Find Next or Find Previous buttons to search upwards or downwards from the current cursor position. You can re-use previous search terms by clicking on the drop-down arrow on the right of the text entry box.

Figure 4.25. Find dialog

Find dialog

The Find and Replace dialog, shown in Figure 4.26, is opened by clicking Search → Replace in the main menu. You can replace the current match with new text by clicking the Replace button, or all matches by clicking the Replace All button. You can re-use previous find or replacement terms by clicking on the drop-down arrow on the right of the text entry boxes.

Figure 4.26. Find and Replace dialog

Find and Replace dialog

Find and Replace mode is only available if the current active window is a source editor. In that mode additional replace controls are shown. The dialog is modeless, so you can change views without closing the dialog. The mode is updated automatically.

Copyright © 2007-2010 ARM Limited. All rights reserved.ARM DUI 0370K
Non-ConfidentialID110210