摩纳哥:如何添加内联 autocomplete/code 建议?
Monaco: How to add inline autocomplete/code suggestion?
我找不到任何关于如何添加内联自动完成的示例,如下图所示?有人可以指导我如何在摩纳哥做到这一点吗?
这可以在 v1.66 中启用(现在在 Insiders 中):
The editor.quickSuggestions
setting now accepts inline as
configuration value. When set to inline, quick suggestions
(IntelliSense) don't display the suggestions widget when you type but
show completions as ghosted text.
见v1.66 release notes: inline quick suggestions
在您的设置中:
"editor.quickSuggestions": {
"other": "inline", // the `inline` value is new
"comments": true,
"strings": true
}
使用此设置,建议将 内嵌显示 而不是 pop-up。
我找不到任何关于如何添加内联自动完成的示例,如下图所示?有人可以指导我如何在摩纳哥做到这一点吗?
这可以在 v1.66 中启用(现在在 Insiders 中):
The
editor.quickSuggestions
setting now accepts inline as configuration value. When set to inline, quick suggestions (IntelliSense) don't display the suggestions widget when you type but show completions as ghosted text.
见v1.66 release notes: inline quick suggestions
在您的设置中:
"editor.quickSuggestions": {
"other": "inline", // the `inline` value is new
"comments": true,
"strings": true
}
使用此设置,建议将 内嵌显示 而不是 pop-up。