0

I'm using Visual Studio Code version 1.96.2 on macOS 14.4.1. This is the latest version of VSCode currently available.

The extensions I have installed (and reinstalled) are:

  • Pylance
  • Microsoft's Python extension
  • Microsoft's Python debugger

Example: pylance is installed

However, I am not seeing autocomplete suggestions for variables, which means I have to type them out, which is extremely annoying:

no autocomplete

This reddit post says that "The official python extension from Microsoft (Pylance) should do it." I already have that extension and am not getting variable name suggestions.

I have looked at numerous StackOverflow posts about this issue. This one says "It works for me with the 0.1.78 version of the language server" with a dead link to the user's settings and no instructions about how to set up a language server.

An answer to this post says you should use "Microsoft language server 0.3.59.0 (beta)." A comment says that to enable that server, you just need to add "python.jediEnabled": false to settings.json and to reload the editor. I did so. Still no variable name suggestions.

I've been unable to find how to set my language server to the "Microsoft language server." When I look at the UI settings, I see only options for Jedi and Pylance.

Language server options

When I select "Pylance" and restart VSCode, I still don't get variable name suggestions. When I select "Jedi" and restart VSCode, I still don't get variable name suggestions.

I have restarted my computer. Still no variable name suggestions. I expected there to be variable name suggestions. How can I enable variable name suggestions?

(Please don't say "you should have just commented on those related posts." I don't have enough reputation to comment on posts.)

EDIT: A comment in "staging ground" says "I've just skimmed the post but have you installed the python plugin? Right now you've just listed ancillary plugins". I don't see a way to respond to this comment. I don't know what it means by "Python plugin." I don't see anything about "plugins" at all in VSCode's help.

nothing found for "plugin" in VSCode help

If this person means "extension," when I search for "Python" in the extensions, the only extension I can see called "Python" is Microsoft's Python extension, which, as I mentioned above, I have already installed.

results for "Python" in VSCode extensions

How is this extension only "ancillary"? What is the non-"ancillary" Python extension? How can I find it?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.