简体   繁体   English

VSCode Intellisense 停止为 python 正常工作

[英]VSCode Intellisense stopped working properly for python

I noticed any variables I make in python will no longer have proper IntelliSense suggestions.我注意到我在 python 中创建的任何变量都将不再有正确的 IntelliSense 建议。 It seems that my VSCode is treating every variable I make as the same type?似乎我的 VSCode 将我创建的每个变量都视为同一类型?

Here is how it is right now这是现在的情况

Here is how it looks when I'm typing in the variable这是我输入变量时的样子

Here is how it looks on my Mac这是它在我的 Mac 上的外观

According to the Intellisense page on VSCodes websites the blue box symbol that appears when I'm calling the variable means its a field while the other symbol on my mac means its a Values and Enumerations.根据 VSCodes 网站上的 Intellisense 页面,当我调用变量时出现的蓝色框符号表示它的字段,而我的 mac 上的另一个符号表示它的值和枚举。 How can I make my desktop the same as my mac.我怎样才能让我的桌面和我的mac一样。

Also when I am typing an existing variable out and I add a "."此外,当我输入现有变量并添加“。”时to use a function on the variable and hit enter it will just copy the variable name again.I only get suggestions for intellisense if I have 2 ".".在变量上使用 function 并按 Enter 只会再次复制变量名称。如果我有 2 个“。”,我只会收到有关智能感知的建议。 So stringG..所以字符串G..

I guess you changed some setting accidently, the fastest solution here is uninstall/install again!我猜你不小心更改了一些设置,这里最快的解决方案是再次卸载/安装!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM