Refactoring - Extract Method Object in NetBeans 8.0.2

While refactoring in Netbeans, I got stuck with an issue. I can't find a Method Extract Method in Netbeans that helps to extract a class from a method [As an Intellij Idea Option mentioned in this link https://www.jetbrains.com/idea/help/extract-method-object. html ]. Is there any alternative to this?

Refactoring Option in Netbeans

+4


source to share


1 answer


You can use the Refactor / Introduce / Method option to extract the selected part of a method to a new method in the same class, for example in Intellij Idea. See the picture below:



Refactoring / Introduce / Method

0


source







All Articles