摩纳哥:如何添加内联自动完成/代码建议?

Joe*_*min 3 javascript visual-studio-code monaco-editor

我找不到任何有关如何添加内联自动完成功能的示例,如下图所示?有人可以指导我如何在摩纳哥做到这一点吗?

在此输入图像描述

在此输入图像描述

Mar*_*ark 5

这可以在 v1.66 中启用(现在在 Insiders 中):

editor.quickSuggestions设置现在接受内联作为配置值。设置为内联时,快速建议 (IntelliSense) 在您键入时不会显示建议小部件,而是将补全显示为幻影文本。

请参阅v1.66 发行说明:内联快速建议

在您的设置中:

  "editor.quickSuggestions": {
    "other": "inline", // the `inline` value is new
    "comments": true,
    "strings": true
  }
Run Code Online (Sandbox Code Playgroud)

通过此设置,建议将内嵌显示,而不是弹出窗口。

内嵌建议