Table of content
WholeTomato

Simplify Instance Declaration

Refactor with "Simplify Instance Declaration" to make declarations of objects easier to understand. The refactoring eliminates the extraneous setting of an object to a new instance of its type.

Access

Access "Simplify Instance Declaration" via the context menu of the text editor (Right-click or Shift+F10), or via the Quick Actions and Refactoring menu (Shift+Alt+Q). The command is available only when the text caret is on the declaration of a local object.

Simplification

After invoking the refactoring, the object is created and initialized in a simpler, but equivalent, declaration.