# Find - Replace Wizard

## Overview

The **Find - Replace Wizard** allows users to search for and replace text within the current editor. It provides various options for refining the search and replacement process, making it a powerful tool for code editing and management.

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-16959a1bb553db384453e36bcc36e72c2fc5c713%2Ffind-replace.jpg?alt=media" alt=""><figcaption><p>Find - Replace Wizard</p></figcaption></figure>

## Sections

### Fields and Options

#### Find

Input field where you can type the text or pattern you are looking for.

#### Replace with

Input field where you can type the replacement text.

#### Direction

Options to specify the search direction:

* **Forward**: Search forward from the current cursor position.
* **Backward**: Search backward from the current cursor position.

#### Scope

Options to specify the search scope:

* **All**: Search throughout the entire document.
* **Selected lines**: Search only within the selected lines.

#### Options

Various options to refine the search:

* **Case sensitive**: Match case exactly.
* **Wrap search**: Continue the search from the beginning/end of the document if the end/start is reached.
* **Whole word**: Match whole words only.
* **Incremental**: Perform an incremental search.
* **Regular expressions**: Use regular expressions for the search pattern.

### Buttons

Here are the available buttons:

* **Find**: Find the next occurrence of the search pattern.
* **Select All**: Select all occurrences of the search pattern.
* **Replace/Find**: Replace the current occurrence and find the next one.
* **Replace**: Replace the current occurrence.
* **Replace All**: Replace all occurrences of the search pattern.
* **Close**: Close the Find - Replace dialog.

## Using Find

<div align="left"><figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-1ed61a21a367f29bd9b687f559502d434bc7a47e%2Ffind-replace-find.gif?alt=media" alt=""><figcaption><p>Using Find</p></figcaption></figure></div>

Here are the steps for using **Find**:

1. Open the Find - Replace Dialog: Access it from the Servoy Developer [Edit](https://docs.servoy.com/reference/menu/edit#find-replace) menu or through a keyboard shortcut (`Ctrl+F`).
2. Enter Find Text:
   * Type the text or pattern you are looking for in the `Find` field.
3. Specify Search Parameters:
   * Choose the direction, scope, and options as needed.
4. Perform the Search:
   * Click the `Find` button to locate the next occurrence of the search pattern.
   * Use the `Select All` button to highlight all occurrences.

## Using Replace

<div align="left"><figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-024700ae6cef574e72eed2c37d5de2305792f6e0%2Ffind-replace-replace.gif?alt=media" alt=""><figcaption><p>Using Replace</p></figcaption></figure></div>

Here are the steps for using **Replace**:

1. Open the Find - Replace Dialog: Access it from the Servoy Developer [Edit](https://docs.servoy.com/reference/menu/edit#find-replace) menu or through a keyboard shortcut (`Ctrl+F`).
2. Enter Find and Replace Text:
   * Type the text or pattern you are looking for in the `Find` field.
   * Type the replacement text in the `Replace with` field.
3. Specify Search Parameters:
   * Choose the direction, scope, and options as needed.
4. Perform the Replace Action:
   * Click the `Replace/Find` button to replace the current occurrence and find the next one.
   * Click the `Replace` button to replace the current occurrence.
   * Click the `Replace All` button to replace all occurrences of the search pattern.
