Use this command to search the currently active editor for a specific phrase (ie, excerpt of text), and replace it with some other phrase. This command is unavailable if there is no text to search.

This presents the Replace dialog box to let you specify the search parameters for the text to replace, as well as specify what text is substituted.

  1. In Find what, type the characters or words you want to find and replace.
  2. In Replace with, type the characters or words you want to substitute.
  3. Click Replace to replace only the next match of Find what with Replace with. Or click Replace All to replace all instances of Find what with Replace with.

To find only text with uppercase and lowercase characters, as specified in Find what, select Match case.

To find only specific text that is distinctly separated from other text with spaces, select Match whole word only. For example, to replace "SAY", but not the last 3 letters of "RXSAY", you would specify "SAY" and also select Match whole word only.

You can limit the search and replace to only that text which is currently highlighted. In Replace In, click Selection to limit the search. Click Whole file to not limit the search/replace.

You can't alter the contents of an editor that is being run or debugged, nor marked as read-only.