# 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="/files/DRnbe48xiigArQok3rde" 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="/files/mnRDclNiZqJZpLV51dnw" 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](/reference/servoy-developer/menu/edit.md#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="/files/QAICBzdUmm0rV1rLAcel" 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](/reference/servoy-developer/menu/edit.md#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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/reference/servoy-developer/object-editors/find-replace-wizard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
