代码之家  ›  专栏  ›  技术社区  ›  Guirms

Visual Studio 2022未使用GitHub Copilot从注释生成代码

  •  0
  • Guirms  · 技术社区  · 2 年前

    我已安装 GitHub Copilot 从…起 Visual Studio extensions

    enter image description here

    它适用于自动完成

    enter image description here

    但是,当我添加一条注释行要求一些实现并按enter键时,没有建议使用任何代码。有没有办法“激活”这个功能?

    enter image description here

    我正在使用。NET 8.0,而我的VisualStudio版本是17.8.2

    1 回复  |  直到 2 年前
        1
  •  1
  •   Samuel Barnes    2 年前

    试着告诉它在没有“创建代码”的情况下该做什么。这是隐含的。我还注意到,在完成代码之前,副驾驶更喜欢在注释后留下一行。