How to enable `Github Copilot` typing `Tab` to auto completes in markdown files?
·
Answer a question
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?

Answers
To enable suggestions for GitHub Copilot with a Tab key, follow the steps below.
-
Open the file
keybindings.jsonin Visual Studio Code. This can be done by pressing Ctrl + Shift + P, and typing Open Keyboard Shortcuts (JSON). -
In
keybindings.json, add the following.[ { "key": "tab", "command": "editor.action.inlineSuggest.commit", "when": "textInputFocus && inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus" } ]
This should now enable you to accept suggestions in Markdown using the Tab key!
更多推荐
所有评论(0)