Search code examples
pythonvisual-studio-codepanda3d

Autocompletion for Panda3D in VSCode


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


Solution

  • 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