最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to get Copilot to implement its own suggestion? - Stack Overflow

programmeradmin0浏览0评论

I am using GitHub Copilot in VSCode.

Question: When Copilot says Sure, I'll add xyz to your code, how do I tell it go ahead and do it?

Here is what is happening:

  1. I asked Copilot to Dockerize my spring boot based web applicaition.
  2. Copilot suggested changes. It correctly suggested to add dockerfile and .dockerignore file
  3. My next prompt was: yes, I am ok with the suggestions. Go ahead and update the project with the changes you suggested.
  4. To which Copilot responded same suggested changes with first line saying Sure, I'll add the Dockerfile and .dockerignore to your project. (see the screenshot below). But it did not make any changes to the project. And I couldn't see any clickable button at the end of the suggestion to approve the action.

So the question is: How do I tell it to Just do it?

Do I have to use any specific command to accept the suggestion?

Screenshot of the conversion:

I am using GitHub Copilot in VSCode.

Question: When Copilot says Sure, I'll add xyz to your code, how do I tell it go ahead and do it?

Here is what is happening:

  1. I asked Copilot to Dockerize my spring boot based web applicaition.
  2. Copilot suggested changes. It correctly suggested to add dockerfile and .dockerignore file
  3. My next prompt was: yes, I am ok with the suggestions. Go ahead and update the project with the changes you suggested.
  4. To which Copilot responded same suggested changes with first line saying Sure, I'll add the Dockerfile and .dockerignore to your project. (see the screenshot below). But it did not make any changes to the project. And I couldn't see any clickable button at the end of the suggestion to approve the action.

So the question is: How do I tell it to Just do it?

Do I have to use any specific command to accept the suggestion?

Screenshot of the conversion:

Share Improve this question asked Jan 30 at 11:04 Dhaval DDhaval D 1,5152 gold badges21 silver badges30 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I guess you'll have to create the file yourself since copilot can't create the file in your IDE but provide the code you needed then copy paste if that's what you want.

发布评论

评论列表(0)

  1. 暂无评论