在显示智能感知以获取 VsCode 中的属性时隐藏片段 [英] Hide snippets when showing the intellisense to get properties in VsCode

查看:33
本文介绍了在显示智能感知以获取 VsCode 中的属性时隐藏片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法隐藏 CTRL+SPACE 列表中的所有片段?

Is there any way to hide all snippets in the CTRL+SPACE list?

如果我将光标放在打字稿文件中的两个 { } 之间,即使我只想要即将创建的对象的属性,intellisense 也会被代码片段包围.

If I have place the cursor between two { } in a typescript file the intellisense gets all cluddered with snippets even tho I only want the properties of the object im about to create.

推荐答案

Visual Studio Code 确实让您能够防止代码片段显示在快速建议列表中.

Visual Studio Code does indeed give you the ability to prevent snippets from being shown in the Quick Suggestions list.

这可以通过将 "editor.snippetSuggestions" 属性添加到您的 设置文件,并将其值设置为"none".

This can be done, by adding the "editor.snippetSuggestions" property to your settings file, and setting its value to "none".

示例:

{
    "editor.snippetSuggestions": "none"
}

这篇关于在显示智能感知以获取 VsCode 中的属性时隐藏片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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