1

This is a small quality of life issue, but I'm curious if there is a solution.

I'm working with a python file in visual studio code. I'm using the "Extract Method" feature to do some refactoring. When I do so, VS Code places the new method below the method from which I'm extracting it. I would like it to place it above instead.

I've searched what I could think of in VS Code's settings ("refactor" "extract method") I've done some googling and searching on stack overflow specifically but haven't found anything like this.

Does anyone know of a way to modify this behavior?

2
  • This function is not currently supported. To request it, open an issue at github.com/microsoft/vscode-python . Commented Feb 10, 2023 at 1:36
  • By the way, the Extract Method will overwrite the original method. If the last run method is above on the definition, it will report an error. Commented Feb 28, 2023 at 1:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.