vscode 的 样式提示失效了!!!

54 阅读1分钟

最近注意到在手动编辑 style 时,输入属性时,没有相关的提示了!如 bac,应该触发 emmet 提示 background 相关的属性的,但是现在没有了,直接是 AI,代码提示,非常不方便的。

image.png

代码提示,应该是插件能力,而系统的 emmet 能力也应该保存,像上面的 AI 提示,简直乱来,没法选择 background-color 这些。

!!!直接打开 settings.json 搜索 quickSuggestions

结果如下:

{
       "editor.quickSuggestions": {
        "other": "offWhenInlineCompletions",
        "comments": "off",
        "strings": "off"
    }
}

就是 offWhenInlineCompletions 这个属性导致的,应该是我更新 vscode 时自动覆盖了,应该改成 on

"other": "on",

大功告成!