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:
Please sign in to leave a comment.
Hello,
Thank you for contacting us.
You can use Refactor | Extract | Extract Class. Choose the option Its own file.
Oh my. Thank you. I forgot you just don't have to select the function which is what I expected, Thank you
You're welcome!