在片段占位符中时,快速建议不起作用 [英] Quick suggestions don't work while inside snippet placeholder

查看:114
本文介绍了在片段占位符中时,快速建议不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

摘要:

您可以在下面的gif文件中看到,在键入 sysout 时会显示建议

As you can see in the gif file below, suggestions show up as we type sysout when not inside any snippet placeholder, otherwise, they don't show up.

已经尝试过:

I查看了GitHub问题并提出了GitHub问题。

I looked on GitHub issues and filed a GitHub issue.

推荐答案

Microsoft支持迅速: https://github.com/Microsoft/vscode/issues/72582

Microsoft support was on it quickly: https://github.com/Microsoft/vscode/issues/72582

快速建议和代码段占位符通常会发生冲突,并且默认情况下,在代码段模式处于活动状态时,快速建议是禁用的。此设置可控制行为: editor.suggest.snippetsPreventQuickSuggestions 是他们的答复。

"Quick suggestions and snippet placeholder often collide and by default quick suggestions are disabled when snippet mode is active. This setting controls that behaviour: editor.suggest.snippetsPreventQuickSuggestions" was their reply.

因此,基本上,在设置中, editor.suggest.snippetsPreventQuickSuggestions 需要设置为false .json

So basically, editor.suggest.snippetsPreventQuickSuggestions need to be set to false in settings.json

这篇关于在片段占位符中时,快速建议不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆