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

Is there a way to talk to copilot after something has been made? For example: I just asked it to search for something on a public api in a comment and let it auto complete the function.

The resulting code was pretty decent except it included a hard coded access_token in the url. This was a blank project, I don't even have an access token for this api - guessing someone posted theirs in a public repo at some point.

Is there a way to talk to copilot at this point to refine the code?



What I normally do in cases like this is set up the necessary scaffolding for the solution. In your case, that could be introducing a variable named something like `access_token` for it to substitute into the URL.

Then, when you trigger a suggestion it's very likely that CoPilot will use your `access_token` variable.


I think this is what Copilot Chat will do.


ah yes, you are correct. Visual Studio (code) only at the moment




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

Search: