Here you can add in your "keybindings.json"
ctrl+shift+p then navigate to keybindings.json file
If want to accept only 1 word
{
"key": "tab",
"command": "editor.action.inlineSuggest.acceptNextWord",
"when": "inlineSuggestionVisible && !editorReadonly"
},
if wants to accept only one line (first one)
{
"key": "tab",
"command": "editor.action.inlineSuggest.acceptNextLine",
"when": "inlineSuggestionVisible && !editorReadonly"
},
for whole code accept use
{
"key": "tab",
"command": "editor.action.inlineSuggest.commit",
"when": "textInputFocus && inlineSuggestionVisible && !editorTabMovesFocus"
},
mostly i assigned like
tab --> will accept one line
ctrl+tab -> accept whole code
ctrl
+enter
, copilot usually suggest upto 10 solutions at a go, once you click that, you can accept anyone that fit your intent. – Brickyard