VSCode内联提示设置

2,761 阅读1分钟

最近由于各大IDE厂商疯狂内卷,智能自动补全,再次迎来大混战, VSCode 3月份的更新中也增加了内联提示的功能

March 2022 (version 1.66)

Editor#

Quick suggestions as inline completions#

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.

看起来只是将小窗口的提示变成了行内样式,所以我试着配置了一下,文当中说可以配置inline属性值,所以将setting.json中的

// 旧配置没有的话直接复制粘贴就行
"editor.quickSuggestions": {
    "other": "on",
    "comments": "off",
    "strings": "off"
  },
  
// 将之前的配置更改成下面的值
"editor.quickSuggestions": {
    "other": "inline",
    "comments": "inline",
    "strings": "inline"
  },

配置完成,让我们体验一下

image.png

然后按下tab键就可以自动补全了,还是很方便的。

image.png

记录编码生活