3 ms·
How well does Copilot work for refactoring? Say I have a large Python function and I want to move a part of it to a new function. Can Copilot do that, and make
by amelius 3y ago
How well does Copilot work for refactoring?
Say I have a large Python function and I want to move a part of it to a new function. Can Copilot do that, and make sure that all the referenced local variables from the outer function are passed as parameters, and all the changed variables are passed back through e.g. return values?
- shrimpx 3y agoProbably not. It looks like an autocomplete engine. But technically you can do that with an LLM, with a more complex interface. You could select a region and then input a prompt "rewrite this code in xyz way". And a yet more complex system to split the GPT output across files, etc.