Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

最近我开始使用Vs code来编写前端代码,为了编写方便我安装了HTML Snippets这个自动补全插件,但是我使用的时候发现一个问题就是,自动补全插件的提示优先级最低,比如我输入div的时候想回车直接就补全<div></div>,但HTML Snippets的补全提示在第二位,十分麻烦,有没有办法把第一位的默认补全给取消掉?

clipboard.png

图中第一项点击后是默认的显示div,第二项才是HTML Snippets的补全<div></div>


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
501 views
Welcome To Ask or Share your Answers For Others

1 Answer

VScode的自动提示一般有这么几种类型:

clipboard.png

目前还做不到屏蔽指定的类型,不过你可以试试在设置里加上:

{
    "editor.wordBasedSuggestions": false,
    "editor.snippetSuggestions": "top"
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...