PyCharm 4.0.0 Web Help

Refactor | Extract Method
Ctrl+Alt+MCtrl+Alt+MCtrl+Alt+MCtrl+Alt+MCtrl+Alt+MCtrl+Alt+MShift+Alt+MShift+Alt+MAlt ⌘ MAlt ⌘ MAlt ⌘ M

Item Description
Name In this text box, specify the name of the function or method to be generated on the basis of the selected source code.
Parameters In this area, select parameters to be passed to the new method/function.


If any parameter that is critical for the functionality of the new method is not selected, PyCharm will be unable to proceed with the refactoring.

Move Up/Down Use these buttons to change the order of the parameters.
Signature preview In this read-only field, view the declaration of the new method/function.
Output variables This read-only field shows local variables or parameters that have been changed within the method body, and will be returned by the method.

See Also


External Links:

Web Resources: