I thought there was a way..... to extract a method into a brand new file in a brand new class

Completed

Say I have one file, one class with two methods.  I'd like to select  it like below and then.... 

Refactor one of the methods into a NEW (not pre-existing) file with in a NEW (not pre-existing) class. Like below:

0
3 comments

Hello,

Thank you for contacting us.
You can use Refactor | Extract | Extract Class. Choose the option Its own file

0

Oh my.  Thank you.  I forgot you just don't have to select the function which is what I expected,  Thank you

0

Please sign in to leave a comment.