Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable `Github Copilot` typing `Tab` to auto completes in markdown files?

I can get some suggestions by copilot in .md files, But when I keydowned Tab, it only added a space, not autocompletes the suggestion, What should I do can autocomplete the suggestion?

enter image description here

like image 891
linka Avatar asked Dec 02 '25 04:12

linka


1 Answers

To enable suggestions for GitHub Copilot with a Tab key, follow the steps below.

  1. Open the file keybindings.json in Visual Studio Code. This can be done by pressing Ctrl + Shift + P, and typing Open Keyboard Shortcuts (JSON).

  2. In keybindings.json, add the following (inside the existing square brackets []):

    {
        "key": "tab",
        "command": "editor.action.inlineSuggest.commit",
        "when": "textInputFocus && inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus"     
    }
    

Make sure to restart VS Code after this.

like image 117
Viradex Avatar answered Dec 04 '25 12:12

Viradex



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!