News for hackers. Stuff that matters.
Re:Claude 3.7 Sonnet and Claude Code by galaxyLogic on Monday February 24, 2025 @05:49PM (#43165884)
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?

Re:Claude 3.7 Sonnet and Claude Code by Aeolun on Monday February 24, 2025 @06:14PM (#43166081)
I think most language servers have a feature like this right?
Re:Claude 3.7 Sonnet and Claude Code by hassleblad23 on Monday February 24, 2025 @06:46PM (#43166326)
Moving 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.
Re:Claude 3.7 Sonnet and Claude Code by galaxyLogic on Tuesday February 25, 2025 @04:37PM (#43177802)
So is moving a function or class possible? What actions you need to take to accomplish that? Thanks
Re:Claude 3.7 Sonnet and Claude Code by hassleblad23 on Saturday March 01, 2025 @10:01AM (#43219860)
This is supported natively by most IDEs today.
Re:Claude 3.7 Sonnet and Claude Code by hassleblad23 on Sunday March 02, 2025 @11:21AM (#43231985)
At least Pycharm is good at it.