Is it possible to preview the changes of the Replace action?

Yes, to preview the changes of the Replace action, follow these steps:

  1. Select Search > File ( refer to the image, Search Menu as listed below) from the IDE menu bar.

    The File Search tab page of the Search dialog box appears (refer to the image, Search Dialog Box as listed below).

    Figure 1. Search Menu

    Search Menu

  2. Specify the text that you want to replace in the Containing text text box.
    Figure 2. Search Dialog Box

    Search Dialog Box

  3. Click the Replace button. The Replace Text Matches dialog box appears.
  4. In the With text box, enter the text with which you want to replace the text entered in the Replace text box.
    Figure 3. Replace Text Matches Dialog Box

    Replace Text Matches Dialog Box

  5. Click the Preview button.

    The dialog box lists the files to which the changes will be performed as a result of the replace action. You can preview each of the change and check or clear a file to accept or reject the change as required.

    Figure 4. Preview Replace Action

    Preview Replace Action

  6. Click OK.

The Replace Text Matches dialog box is closed.

The changes as a result of the replace action are performed to the selected files.