Skip to content

Vscode 解决 GitHub Copilot 与 Markdown All in One 插件冲突问题

Published: at 05:24 PMSuggest Changes

GitHub Copilot 很好用,但是在和 Markdown all in one 一起用的时候,不能按 Tab 自动补全,打出来的是空格。

翻了一下 github,找到这篇文章

https://github.com/github/feedback/discussions/7861

解决方法如下,我这儿做一下转载

https://dxrf.com/blog/2021/09/28/gh-copilot-markdown-all-in-one-extension/

[
  {
    "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'"
  }
]

Previous Post
使用 FFmpeg 将 WebM 文件转换为 MP4 文件
Next Post
Go 语言单引号和双引号的区别