These are some stubs files that assist vscode via jedi in autocompleting commands used in the Maya Python codebase.
-
Clone this repo to a local folder on disk. (eg
/home/savio/vscode/maya-completion
) -
In your vscode
settings.json
add this local path as a autoComplete extraPath"python.autoComplete.extraPaths": ["/home/savio/vscode/maya-completion"]
If your using the python language server and python 2.7, there seems to be a bug in vscode-python that doesn't show docstrings correctly.
Read more about it here:
Intellisense not showing docstrings from /lib/site-packages modules in Python 2.7 virtual env #2989 microsoft/vscode-python#2989