# Move Wizard

## Overview

The **Move Wizard** allows users to move `.js` files within their project. This tool provides options for updating references to the moved elements and creating new folders as needed.

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-6c79c785ff3e7d53a2a12c0f6c1d54a8898adf29%2Fmove-wizard.jpg?alt=media" alt=""><figcaption><p>Move Wizard</p></figcaption></figure>

## Sections

### Choose Destination

A tree view of the project structure where users can select the destination for the file being moved.

### Options

Here are the available options:

* **Update references to the moved element(s)**: Automatically updates any references to the moved elements within the project.
* **Update fully qualified names in non-Script text files (forces preview)**: Updates fully qualified names in non-Script text files and forces a preview of the changes.
  * **File name patterns**: Specify file name patterns to limit the updates to certain files.

### Buttons

Here are the available buttons:

#### Create Folder...

Opens the [New Script Package](https://github.com/Servoy/gitbook/blob/master/reference/servoy-developer/object-editors/refactor-move-wizard/README.md#new-script-package-dialog-ssections) dialog to create a new folder within the project.

#### Preview

Displays a preview of the changes that will be made by the move operation.

#### OK

Executes the move operation.

#### Cancel

Closes the Move Wizard dialog without making any changes.

## New Script Package dialog sections

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-86c3f7afc71a5be6b0f7212de5f7b3f325825fe2%2Fmove-wizard-create-folder-and-browse.jpg?alt=media" alt=""><figcaption><p>New Script Package</p></figcaption></figure>

### Source Folder Selection

Allows users to choose the source folder where the new folder will be created.

### Folder Name

Input field where users can specify the name of the new folder.

### Buttons

#### Browse...

Opens a dialog to select the source folder from the project structure.

#### Finish

Creates the new folder in the selected source folder.

#### Cancel

Closes the Create Folder dialog without creating a new folder.

## Using the Move Wizard

Here are the steps for using the **Move Wizard**:

1. Open the Move Wizard: Access it from the Servoy Developer [Refactor](https://docs.servoy.com/reference/menu/refactor#move) menu or through the right-click context menu in the script editor.
2. Choose Destination:
   * Navigate through the project structure and select the desired destination for the file or folder being moved.
3. Configure Options:
   * Check the box to update references to the moved elements if needed.
   * Check the box to update fully qualified names in non-Script text files if required, and specify file name patterns if necessary.
4. Create a New Folder (Optional):
   1. Click the `Create Folder...` button to open the [New Script Package](https://github.com/Servoy/gitbook/blob/master/reference/servoy-developer/object-editors/refactor-move-wizard/README.md#new-script-package-dialog-sections) dialog.
   2. Select Source Folder:
      * Use the `Browse...` button to open the Source Folder Selection dialog.
      * Choose the desired source folder from the project structure and click `OK`.
   3. Enter Folder Name:
      * Enter the name of the new folder in the `Name` field.
   4. Create the Folder:
      * Click the `Finish` button to create the new folder in the selected source folder.
      * Click the `Cancel` button to close the `Create Folder` dialog without creating a new folder.
5. Preview Changes (Optional):
   * Click the `Preview` button to see a preview of the changes that will be made by the move operation.
6. Execute the Move:
   * Click the `OK` button to execute the move operation.
   * Click the `Cancel` button to close the Move Wizard dialog without making any changes.
