PyCharm 2019.2 Help

Extract Constant Dialog

Refactor | Extract Constant
Ctrl+Alt+C

Item

Description

Name

Specify the name of the new constant.

Replace all occurrences

Select this checkbox to automatically replace all the occurrences of the selected expression (if the selected expression is found more than once in the method).

Last modified: 6 November 2019