roslynator
roslynator copied to clipboard
Proposal: Extract method to new class
I want to take a existing method in a class and move this to a new class. This is useful while doing refactoring.
By placing the cursor on a method, I would like to get a choice like: 'Move method to new class'
This would for example move the method to a new class in the same file and let me edit the class name. After that I can use a existing refactoring to move the class to a new file.
Alternatively we could have another choice like: 'Move method to new file and class'
This would move the method to a new class in a new file. Maybe there is a little bit of problem naming the file since the class name is not defined.