VSCode Python Intellisense stopped functioning properly? All variables show up as fields now

Viewed 3321

I honestly dont remember when this started to happen but I haven't been able to fix it. No matter what variable I create the Intellisense only recognizes it as a field and doesn't give me any intellisense options. Example

1 Answers

The IntelliSense was provided by the language server. It looks like the language server which you are using has run across some problems.

You can try to switch to a different language server, such as 'pylance'. Change this setting in your settings.json file:

"python.languageServer": "Pylance",

If you want to take advantage of 'Pylance', you should download it in the marketPlace first, while 'Jedi' and 'Microsoft' needn't.

And maybe you will run across some problems in the future, you can try to reinstall the related extensions. And if you want to uninstall the VSCode clearly you shouldn't forget the extension folder which under like this:

C:\Users\xxx\.vscode\extensions
Related