Extract method
note
This refactoring is also available as an intention action in the editor. Select code that you want to extract, press Alt+Enter and select Extract Method.
note
The Extract Method refactoring has the following limitations:
Refactoring does not work when there are references to generic types.
Refactoring does not work with multiple output values in automatic mode. You have to change your code before applying the refactoring.
tip
To reverse the Extract Method refactoring, press Ctrl+Alt+N to invoke the Inline refactoring.
Thanks for your feedback!
Was this page helpful?