Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do regular 'Tab' without triggering GitHub Copilot in VS Code?

When using GitHub Copilot with VS Code, by default, it uses Tab to accept CoPilot's suggestion.

But sometimes I want to genuinely make a tab at a point in the code where CoPilot has other ideas.

How can I make a tab in that position without triggering Copilot?

like image 287
stevec Avatar asked Dec 13 '25 18:12

stevec


2 Answers

I assume you know you can hit Esc to get rid of the current suggestion and then hit Tab? I realize this may be common sense, but just in case, I wanted to point it out!

But, that does ruin your flow.

If you want to actually change the key, you can follow the other folks in here that guide you to do that!

like image 64
TheHumanist Avatar answered Dec 16 '25 14:12

TheHumanist


Today there isn't a solution to this problem, but a possible workaround is to change the copilot shortcut that accepts the suggestion.

On VS Code: File>preferences>Keyboard shortcuts

and search for 'editor.action.inlineSuggest.commit', the command that accepts the Copilot suggestion.

I used the shortcut Alt+a to avoid conflicts with other commands.

like image 33
SvMax Avatar answered Dec 16 '25 14:12

SvMax



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!