I want to move some methods up (I prefer build up flow not split down flow).
I have such class for example after extraction method from method_using_y.
class X:
def method_using_y():
pass
def y():
pass
And after refactoring I need this:
class X:
def y():
pass
def method_using_y():
pass
I want to change it to such order (with some automatic tool - I can do it with copy/paste and for such simple methods it works but it not works for large methods and more methods).
What I found I can navigate method up/down and mark method than cut, navigate up and paste. It is not simple and time consuming. I need it because refactoring code to method not works (it always put source function below function which will use it).
Can you help if any shortcuts or action in PyCharm to do it?