这些是基于单词的建议。他们受到了控制 editor.wordBasedSuggestions 设置。
editor.wordBasedSuggestions
但是,只有找不到基于语言的有效建议时才会显示字基建议(请参阅 https://github.com/Microsoft/vscode/issues/21611 )。 JS应该在字符串中做正确的事情:
但是内置的php语言支持仍然会在字符串中返回基于语言的建议,这就是基于单词的建议没有出现的原因
像这样?
我的设置:
intelephense 扩展已启用
{ "editor.quickSuggestions": { "other": true, "comments": false, "strings": true }, "editor.wordBasedSuggestions": true, "php.suggest.basic": false }