4

enter image description here

Actually I have started to write a for loop, My VS Code AI or GitHub Copilot I don't know what it is but completed my code, but I don't know how to accept the code when I press enter or space the code disappears is there any shortcut to print the code. I am noob to VS Code and Stack Overflow, hope you understand what I am asking.

rioV8
  • 24,506
  • 3
  • 32
  • 49
CHANDRU R
  • 73
  • 1
  • 7
  • 1
    Note that there *are* cases where pressing **Tab** does not work. [Here](https://github.com/yzhang-gh/vscode-markdown/issues/1011#issue-996151712)'s a GitHub Issue that might help then. – Nicolai Weitkemper Jan 14 '22 at 18:57

2 Answers2

5

Simply hit the Tab key to accept CoPilot's suggestion.

Ronny
  • 4,295
  • 2
  • 24
  • 30
0

enter or space will not do that, maybe try pressing the "tab" key, it will automatically fill in the code.

Louyi
  • 69
  • 8