Home > Net >  VS code python attribute suggestion
VS code python attribute suggestion

Time:12-16

I have a problem with Intellisense. Even though Python, Pylance and even Visual Studio IntelliCode extensions are installed, VS code is still unable to suggest object attributes.

Could you please advise any settings.json parameters which will trigger python attribute suggestion globally ?

Sometime it's tedious to remember all object attributes without documentation being opened.

enter image description here

CodePudding user response:

You can use ctrl space for windows for activating intelliSense in VsCode.

However it also depends on processing speed of computer.

CodePudding user response:

Intellisense was provided by the Language Server. The search paths depend on the python interpreter you have selected.

If you modify the PYTHONPATH manually to import the package, you need to add these locations to the Language Server too(settings.json), like this:

"python.autoComplete.extraPaths": [
    "C:/Program Files (x86)/Google/google_appengine",
    "C:/Program Files (x86)/Google/google_appengine/lib/flask-0.12"]

You can refer to here.

Or, there are some problems of your Language Server, you can have a look at the OUTPUT panel --> Python Language Server channel. And attach the error message on the question.

  • Related