Inline variable

The Inline Variable &shortcut:Inline; (Refactor | Inline) refactoring replaces redundant variable usage with its last assigned value.

inline variable

You can also inline functions, parameters, constants, macros, and typedefs.