# Using the Find/Replace dialog

To open the Find / Replace dialog:

1. Optionally, select some text in a text (or Java) editor
2. Press `Ctrl`+`F` or
3. From the menu bar, select Edit > Find / Replace

To use the Find / Replace dialog:

1. In the Find field, enter the text you want to replace
2. Optionally, in the Replace With field, enter the next text
3. Use the radio buttons in the Direction group to select the direction of finding occurrences (relative to the current caret position)
4. In the Scope radio button group:
   - Select the Selected Lines button if you want to limit find / replace to the lines you selected when opening the dialog
   - Select the All button otherwise
5. In the Options group:
   - Select the Case Sensitive checkbox if you want finding to be case sensitive.
   - Select the Whole Word checkbox if you want to find / replace only those occurrences in which the text you entered in the Find field is a whole word
   - Select the Wrap Search checkbox if you want the dialog to continue from the top of the file once the bottom is reached (if you find / replace in Selected Lines only, then this option applies to those lines only)
   - Select the Incremental checkbox if you want to perform incremental find (e.g. the dialog will find matching occurrences while you are typing in the Find field)
   - Select the Regular Expressions checkbox if you want to perform regex search. When Regular Expressions are enabled, you can use content assist (`Ctrl+Space`) in the Find and Replace fields to get support for regex syntax.
6. Press:
   - Find if you want to find the next matching occurrence
   - Replace, if you want to replace the currently selected occurrence with the new text
   - Replace / Find, if you want to replace the currently selected occurrence with the new text and find the next matching occurrence
   - Replace All, if you want to replace all matching occurrences with the new text
7. Press Close.

Java editor

Using the Java editor
Finding and replacing

Edit menu