Extract Method so it appears below current method rather than above

I would like to be able to extract a method so that it appears below the current code.

In Clean Code, Robert Martin suggests structuring code to read from top to bottom with the highest level functions at the top of the file.

The way the refactoring currently works, you end up with the lowest level code at the top of the file. Obviously, I cut and paste into the position I want, afterwrds.

I can't see any way to configure refactorings generally, or specifically.

Many thanks.
5
9 comments
Is it okay to bump? I don't want to appear rude :)
2
+1
1

Please implement this. I really need this feature, too. I always have the move the new function from “above” to “below”.

 

1

It's been over 9 years…

1

Better late than never. I still need it.

1

We're ⅓ of a year away from the 10 year anniversary.

I use the professional edition. I'd have thought someone official would have responded before now, no-one's *that* busy.

1

Generally I want new functions that are at a lower level of abstraction (generally) to below the current function. Seems not hard to implement. The current functionality means that I just don't use the refactoring tool much and do it by hand which is annoying.

1

Please sign in to leave a comment.