Autocompletion for Panda3D in VSCode

Question:

Autocompletion doesn’t work for Panda3D 1.10.11. in VSCode 1.68.1. Is it possible to solve this problem?

enter image description here

enter image description here

Asked By: 8Observer8

||

Answers:

This problem is caused by the lack of .subs files in panda3d package, not vscode. Related problem has been raised in GitHub. Please wait for the update of package.

Answered By: MingJie-MSFT

unware:

You can download the folder https://github.com/WMOkiishi/types-panda3d/tree/master/src/panda3d-stubs with https://download-directory.github.io/ , name it panda3d-stubs and add the directory containing it to the VSCode’s settings.

"python.analysis.extraPaths": [
        "C:\Users\user\Documents\panda3d\stubs"
]

For example:

    "python.analysis.extraPaths": [
        "E:\Libs\panda3d"
    ]

enter image description here

enter image description here

enter image description here

Answered By: 8Observer8