4 ms·
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 a
by chrisan 4y ago
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?
- drBonkers 4y agoI think this is what Copilot Chat will do.
- chrisan 4y agoah yes, you are correct. Visual Studio (code) only at the moment
- muny 4y agoWhat 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.