4 ms·
The thing I would like automated is highlighting a function in my code then ask the AI to move it to a new module-file and import that new module. I would like
by galaxyLogic 2y ago
The thing I would like automated is highlighting a function in my code then ask the AI to move it to a new module-file and import that new module.
I would like this to happen easily like hitting a menu or button without having to write an elaborate "prompt" every time.
Is this possible?
- Aeolun 2y agoI think most language servers have a feature like this right?
- hassleblad23 2y agoMoving a function or class? Yes. But moving arbitrary lines of code into their own function in a new module is still a PITA, particularly when the lines of code are not consecutive.
- galaxyLogic 2y agoSo is moving a function or class possible? What actions you need to take to accomplish that? Thanks
- hassleblad23 2y agoThis is supported natively by most IDEs today.
- hassleblad23 2y agoAt least Pycharm is good at it.