<html><head><link rel="canonical" href="https://www.jetbrains.com/help/idea/inline-dialogs.html.md/" data-react-helmet="true"/></head><body># Inline dialogs

&gt; **TL;DR**
&gt; `Refactor | Inline`
&gt;
&gt;
&gt;
&gt; <context menu of a selection>`| Refactor | Inline`
&gt;
&gt;
&gt;
&gt; `Ctrl+Alt+N` (Windows), `⌘ ⌥ N` (macOS), `⌘ ⌥ N` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ N` (macOS System Shortcuts), `Ctrl+Alt+N` (XWin), `Ctrl+Alt+N` (GNOME), `Ctrl+Alt+N` (KDE), `Ctrl+Alt+N` (Emacs), `Ctrl+Alt+N` (Sublime Text), `⌘ ⌥ N` (Sublime Text (macOS)), `Ctrl+Alt+N` (NetBeans), `Ctrl+R, I` (Visual Studio), `⌘ R, I` (Visual Studio (macOS)), `Alt+Shift+I` (Eclipse), `⌘ ⌥ I` (Eclipse (macOS))

## Inline Variable dialog

The Inline Variable refactoring allows you to replace a redundant variable with its value.  See [examples](inline.html).

To access the Inline Variable dialog through a menu item or the keyboard shortcut, place the caret at the variable to be inlined.

```
Inline variable <variable name>? (<the number of variable occurrences>)
```

## Inline to Anonymous Class dialog

| Item | Description |
| --- | --- |
| All references and remove the class | Select this option to replace all the class references with its code and remove the class.  |
| This reference only and keep the class | Use this option to replace only the current class reference. |
| Search in comments and strings | Select this checkbox to display the usages of methods in comments and strings in the Refactoring Preview tool window.  							  &gt; **Note:** &gt; This option will force the Refactoring Preview tool window to open even if you click the Refactor button instead of the Preview button.    |
| Search for text occurrences | Select this option to apply the changes to documentation, HTML, JSP, and other non-Java files included in your project.  |

## Inline method dialog

[Inline Method](inline.html) refactoring places method's body into the body of its caller(s). You have the option to:

* inline all occurrences of the method, and delete the method

* inline only a single occurrence and retain the method

| Item | Description |
| --- | --- |
| Inline all usages, remove the method | Select this option to replace all the method calls with its code and remove the method. |
| Inline all usages, keep the method | Select this option to replace all the method calls with its code and keep the method intact. |
| Inline this usage only, keep the method | Select this option to replace only the current method call. |
| Search in comments and strings | Select this checkbox to display the usages of methods in comments and strings in the Refactoring Preview tool window.  						  &gt; **Note:** &gt; This option will force the Refactoring Preview tool window to open even if you click the Refactor button instead of the Preview button.    |
| Search for text occurrences | Select this option to apply the changes to documentation, HTML, JSP, and other non-Java files included in your project.  |
| Preview | Click this button to see the expected changes prior to actually performing the refactoring. |
| Refactor | Click this button to perform the refactoring right away. |

## Inline super class dialog

[Inline Super Class](inline.html) refactoring results in pushing superclass' methods into the class where they are used, and removing the superclass.

| Item | Description |
| --- | --- |
| JavaDoc for inlined members |     In this area you can select an action that can be applied to JavaDoc. You can choose from the following options:        * As is - lets you leave the inline documentation where it is.    * Copy - lets you copy the inline documentation to the destination superclass without removing it from its current location.    * Move - lets you move the inline documentation to the destination superclass and delete it from its current location.    |
| Inline all references and remove the class | Select this radio button to replace all the super class references with its code and remove the super class.  |
| Inline this reference only and keep the super class | Select this radio button to replace only the current super class reference. |

## Inline parameter dialog

[Inline Parameter](inline.html) refactoring allows you to replace usages of the parameter with the value from the arguments of the method call.

| Item | Description |
| --- | --- |
| Replace with local variable |     Select this option to introduce a variable with the same name and type as the parameter instead of inlining the value from the call site everywhere inside the method.     |

## See also

### Procedures

[Inline](inline.html)

</the></variable></context></body></html>