Jenna Massardo - Geek of all things Technology

GitHub Copilot tab-complete not working in markdown files

|

Summary

I’ve been with the beta for GitHub Copilot for a while and I recently noticed that the tab-complete stopped working when editing markdown files. I started searching and found a couple GH issues, one of which has a usable workaround.

Issues:

Workaround

  • Open the command palette (Ctrl+Shift+P)
  • Select Preferences: Open Keyboard Shortcuts (JSON))
  • Paste in the following and save
[
  {
    "key": "tab",
    "command": "markdown.extension.onTabKey",
    "when": "editorTextFocus && !inlineSuggestionVisible && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'"
  },
  {
    "key": "tab",
    "command": "-markdown.extension.onTabKey",
    "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'"
  }
]

Closing

If you have any questions or feedback, please feel free to contact me: @jennamassardo