VS Code Extension for Autodesk Maya Python Intellisense and Debugging
Add Python Intellisense for maya python module
Display more module information and link the document directly
Integrate the python debugger that allow you set the breakpoint to test the code in Maya
right click the menu item Debug Current Python File to Maya, if you didn't activate the command Port in Maya,it will tell you the mel command to activate it.
if the python ptvsd debug module didn't initialize,it will import the module automatically and show the message for you.
if all the step had been done, congratulation ,you could use breakpoint to debug your python file in Maya.
Module Intellisense Feature
Intellisense feature is completely base on the vscode python extension autocompletion feature.
when you activate the extension , it will add the completion path to the setting.json python.autoComplete.extraPaths attribute
By the way, I recommend you enable Jedi for performance issue temporarily.
Current Python Language Server is pretty slow when you try to pop up the autocompletion list.
Even so, Jedi also may not the perfect solution , you could check this issue.
The origin completion python code came from the Maya developer center devkit
devkit path : devkitBase\devkit\other\pymel\extras\completion\py
[x] OpenMaya 1.0
[x] OpenMaya 2.0
Better Intellisense Feature
The origin completion code already get the running module for intellisense.
but some module lack of the detail information for the specific function or class.
I try to extract more information from the Maya online document to build a better completion file. MayaDoc repo is how I extract the data from the Maya online document
[x] add link to the document
[x] add the parameter intellisense
[ ] OpenMaya 1.0
[ ] OpenMaya 2.0
[ ] pymel
[ ] pyside2
[x] integrate python ptvsd debug module
[x] auto setup python debug environment
[x] add the debug python file button on the right click menu
[x] add the debug configuration snippet
Python - Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, Data Science (with Jupyter), PySpark and more.
mayaCode - A Visual Studio Code extension with support for coding for Maya.