Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to accept the code the suggested by vs code

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.

like image 931
CHANDRU R Avatar asked Mar 26 '26 03:03

CHANDRU R


2 Answers

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

like image 166
Ronny Avatar answered Mar 28 '26 17:03

Ronny


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

like image 31
Louyi Avatar answered Mar 28 '26 15:03

Louyi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!