# Move Inner to Upper Level Dialog for Java

> **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)), `Ctrl+M` (NetBeans), `Ctrl+R, O` (Visual Studio), `⌘ R, O` (Visual Studio (macOS)), `Alt+Shift+V` (Eclipse), `⌘ ⌥ V` (Eclipse (macOS))

Move Inner Class refactoring dialog is invoked for inner classes selected in the Structure view or opened in the editor.

| Item | Description |
| --- | --- |
| Class name | Use this field to rename the moved inner class, if needed. |
| Package name | Specify the name of the package for the class to be moved to. |
| Pass outer class' instance as a parameter | Select this checkbox, if you want the moved class to preserve access rights to its former outer class.  |
| Parameter name | Specify here the name for the outer class' instance passed as a parameter. |
| Search in comments and strings | Select this option to apply the changes to comments and strings. |
| Search for text occurrences | Select this option to apply the changes to documentation, HTML, JSP, and other non-Java files included in your project. |
| Search for references | Select this checkbox to have the changes applied to the references. This option is available only for Move File or Move Package refactorings. |

## See also

### Procedures

[Move and copy refactorings](move-refactorings.html)

