CLion Help

Extract Method Dialog

Refactor | Extract Method
Ctrl+Alt+M


Extract Function.
ItemDescription
NameIn this text box, specify the name of the function or method to be generated on the basis of the selected source code.
Declaration place Select a place for new function declaration from the drop-down list
Return type In this field, specify the return type of the new function
Signature previewIn this read-only field, view the declaration of the new method/function.

Extract Function Parameters Pane

ItemDescription
Type Specify the type of the added parameter
NameSpecify the name of the added parameter
List of parametersContains the full parameters list of created function

Toolbar

ItemShortcutDescription
add Alt+Insert Click this button to add a new parameter to the list.
delete Alt+Delete Click this button to remove the selected parameter from the list.
arrowUp or arrowDown  Alt+Up or Alt+Down Use these buttons to move the selected parameter up and down in the list.

The order of parameters in the list defines the order in which parameters appear in the function.

See Also

Web Resources:

Procedures:

Last modified: 7 May 2015