VS Code Intellisense最初不建议使用代码段 [英] VS Code Intellisense don't suggest snippet at first

查看:131
本文介绍了VS Code Intellisense最初不建议使用代码段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在VSCode中使用代码段。但是,例如,当我在JavaScript文件中键入 for 时,Intellisense不会建议代码段 for-loop-我需要手动滚动下拉列表并选择它。有什么方法可以让VSCode首先建议代码片段?谢谢!

I want to use code snippets in VSCode. But when I type, for example, for in javascript file, the Intellisense doesn't suggest snippet "for-loop" - I need to manually scroll the dropdown and select it. Is there any way to make VSCode to suggest snippets at first? Thank you!

UPD:我发现有同样问题的人,但他没有答案-链接

UPD: I have found the person with same problem, but he has no answers - link

推荐答案

您需要使用 top 值的 editor.snippetSuggestions 配置选项。请参阅自定义IntelliSense 文章,以获取更多提示和技巧。

You need to use editor.snippetSuggestions config option with "top" value. Please, see Customizing IntelliSense article for more tips and tricks.

这篇关于VS Code Intellisense最初不建议使用代码段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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