<context menu of a selection>
⌥⌘N or ⌥⌘N⌥⌘N or ⌥⌘N⌥⌘I or ⌥⌘I^ ⌥ N, ⌃⌥N or ⌃⌥N^ ⌥ N, ⌃⌥N or ⌃⌥N
Inline Variable dialog
The Inline Variable refactoring allows you to replace a redundant variable with its value. See examples.
To access the Inline Variable dialog box through a menu item or the keyboard shortcut, position the cursor at the variable to be inlined. The dialog box does not contain any controls but just displays the following message:
Inline variable <variable name>? (<the number of variable occurrences>)
Inline to Anonymous Class dialog
| Item | Description |
|---|---|
| All references and remove the class | Select this radio button 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 | Check this option to apply the changes to comments and strings. |
| Search for text occurrences | Check this option to apply the changes to non-java files (such as documentation, HTML, JSP and other files included in the project). |