VSCode Intellisense停止正常运行于python [英] VSCode Intellisense stopped working properly for python

查看:89
本文介绍了VSCode Intellisense停止正常运行于python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到我在python中创建的任何变量将不再具有适当的IntelliSense建议.看来我的VSCode会将我创建的每个变量都视为同一类型?

在Mac上的外观如下

根据VSCodes网站上的Intellisense页面,当我调用变量时出现的蓝色框符号表示其字段,而在Mac上的其他符号表示其值和枚举.如何使我的桌面与Mac相同.

同样,当我键入现有变量并添加."时.要在变量上使用函数并按Enter,它将再次复制变量名称.如果我有2个.",我只会得到有关智能感知的建议.所以stringG ..

解决方案

我想您不小心更改了某些设置,这里最快的解决方案是再次卸载/安装!

I noticed any variables I make in python will no longer have proper IntelliSense suggestions. It seems that my VSCode is treating every variable I make as the same type?

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

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. How can I make my desktop the same as my 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 ".". So stringG..

解决方案

I guess you changed some setting accidently, the fastest solution here is uninstall/install again!

这篇关于VSCode Intellisense停止正常运行于python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆