How to tell PyCharm to put generated functions below the current function instead of above?
Asked Answered
H

0

6

I have a function call foo() inside my main function and the corresponding function foo does not yet exist. I would like PyCharm to generate that function for me, using the light pulp option shown below.

It works in principle. However, I would like to have the new function generated below main and not before/above it.

=> How can I tell PyCharm to put the generated function below the function from which it is called/generated?

=> Is there some PyCharm setting that I could not find, yet? Or some plugin/extension?

enter image description here

If I extract a method (Ctrl+Alt+M), the newly generated method is put below the calling method, as expected.

Hannan answered 29/9, 2022 at 14:17 Comment(1)
This is not a real solution, but, at least, helps a bit. After clicking on "Create function ...", exit function body editing (2 x esc) and press cmd + shift + ↓. This will move the function belowCyprinid

© 2022 - 2024 — McMap. All rights reserved.