gpt4 book ai didi

visual-studio-code - 字符串的 VSCode 自动完成/智能感知

转载 作者:行者123 更新时间:2023-12-01 08:49:00 25 4
gpt4 key购买 nike

在 sublime 中使用 PHP 或 JavaScript 文件时,如果我输入以下代码:

$test = "Scott";
If($test == null) {
$test2 = "Scott"
}

当我输入“$test2 = ‘Sc...”时,Sublime 会自动补全“Scott”,因为它是在当前文档范围内作为字符串找到的一个词。

然而,当我在 VSCode 中做同样的测试时,它并没有选择它或提供任何建议。这在 VSCode 中可能吗?我已经在首选项中打开了所有 true 的快速建议。我不确定我还能在这里做什么,或者我是否需要下载其他插件。谢谢!

最佳答案

像这样?

word based suggestions

我的设置:

intelephense启用扩展

{
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
},
"editor.wordBasedSuggestions": true,
"php.suggest.basic": false
}

关于visual-studio-code - 字符串的 VSCode 自动完成/智能感知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47872641/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com