PyCharm provides the following inline refactorings:
- The Inline Variable refactoring replaces redundant variable usage with its initializer. This refactoring is opposite to Extract Variable.
To perform the inline refactoring
- Place the caret in the editor at the desired symbol to be inlined.
- Do one of the following:
- In the Inline dialog box that corresponds to the selected symbol, confirm the inline refactoring.
Last modified: 23 November 2016