Find and Replace Code

The Source Editor enables you to quickly find and replace code.

Find and Replace

With your cursor placed in the editor, you can press Ctrl > F (Windows) or Cmd > F (Mac) to open the Find dialog.

Figure 1. Find Dialog
Find dialog.

You can set the search to:

  • Match case
  • Match whole words
  • Analyze a part of the file
  • Use regular expression

You can replace your search results with a particular expression. To do so, in the Find dialog, you click the Toggle Replace mode button that expands it to the Find and Replace dialog.

Figure 2. Find and Replace Dialog
Find and replace dialog.

You can replace all search results at once or do it one by one. All search results are highlighted.