I am a new user of GitHub Copilot and I am having trouble triggering the in-line suggestions it provides. I have tried various settings and configurations, but I am still unable to get it to work properly.
The expected output is that I should be able to accept copilot inline suggestions by pressing tab, enter, or space.
I have taken several steps to try and resolve the issue.
I have also checked and updated my VS Code settings to include the following:
"[copilotignore]": {
"editor.acceptSuggestionOnCommitCharacter": true,
"editor.acceptSuggestionOnEnter": "smart"
},
"github.copilot.advanced": {
// "secret_key": "",
"useTab": true
},
"github.copilot.editor.enableAutoCompletions": true,
"emmet.showSuggestionsAsSnippets": true,
"github.copilot.enable": {
"*": true,
"plaintext": true,
"markdown": true,
"scminput": true,
"javascript": true
},
"editor.acceptSuggestionOnEnter": "smart",
"extensions.autoCheckUpdates": true,
Any ideas what's going on here? enter image description here
I also encountered this issue, and I solved it using the following method:
To enable GitHub Copilot suggestions with the Tab key, do the following:
1.Open the keybindings.json file in Visual Studio Code. You can do this by pressing Ctrl + Shift + P and typing Open Keyboard Shortcuts (JSON).
2.In the keybindings.json file, add the following code:
[
{
"key": "tab",
"command": "editor.action.inlineSuggest.commit",
"when": "textInputFocus && inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus"
}
]
This will enable you to accept Markdown suggestions with the Tab key!
Just wanted to drop in, that there is also a command called Toggle Tab moves Focus. I toggled it off and then I was able to use my Tab key to accept suggestions from Copilot again. Before every time I hit Tab I was apperantly just loosing focus... 🙈
In the following screenshot you see my Show All Commands which I open via Ctrl + Shift + P.

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