Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have you tried GitHub Copilot Chat? You just select the code you want to edit in your IDE and tell it what you want (the chat is in an integrated window next to your code). It will see what code is selected and use the rest of your codebase to edit it. The code it responds with even has has a "Insert at Cursor", which will replace the selected code with the new.


Ya, I would like to checkout Copilot Chat. Last time I checked it was waitlisted though.

My open source tool aider allows you to just ask for a change, without pointing it at a specific chunk of your code. It can handle changes that require multiple edits across multiple files. Ideally you just run aider inside your git repo and start asking for changes. Sometimes it helps to tell it which files to pay attention to.

Here's some example chat session transcripts that give a sense of what it's like to code this way:

https://aider.chat/examples/complex-change.html

https://aider.chat/examples/add-test.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: