# Move Identifier dialog

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

> **TL;DR**
> `Refactor | Move`
>
>
>
> `F6` (Windows), `F6` (macOS), `F6` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ I` (macOS System Shortcuts), `F6` (XWin), `F6` (GNOME), `F6` (KDE), `F6` (Emacs), `F6` (Sublime Text), `F6` (Sublime Text (macOS)), `F6` (VSCode), `F6` (VSCode (macOS))

You can move source code sections to another package or a file.

| Item | Description |
| --- | --- |
| Declarations |  Select the declarations you want to move along with the identifier. If the identifier has an associated comment section, the refactoring will move the comment section as well.  |
| To directory |  Specify the directory where the selected identifiers will be stored.  |
| To file |  Specify the name of the file where the selected identifiers will be stored.  |
| To package |  Specify the name of the package where the selected identifiers will be stored.  |
| Refactor |  Click this button to start the move refactoring.  |
| Preview |  Click this button to preview all changes in the Find tool window before applying them.  |
| Cancel |  Click this button to cancel the move refactoring.  |

