I have compiled Blender as a Python module and successfully use it in Eclipse. I can also import the bpy module just fine from a Python console. However, I more and more switch to Visual Studio Code for coding tasks, and now wonder how to get proper autocompletion there.
In Eclipse, I can define an interpreter and hook it up with the relevant Python paths:
Select the python interpreter located at PYTHONPATH
That’s about it. Pretty sure I never even touched settings.json.
Maybe it’s possible without ever moving the file using includes, but it “just works” so I never cared.
Granted, the auto-completion isn’t entirely instant, but it’s much better than it was just 6 months ago.
Not working on my side unfortunately. Have completed steps 1 and 2. Not sure about what you mean with 3. Have done 4 as well. Maybe there is something unrelated off on my side, as even for modules like os I get completely nonsense AutoComplete:
The completion offered are methods and props from the package I am working in. Not sure why this is the case here.
never mind, got it fixed by removing some variables from my settings.json that apparently did more damage than they could help. Thanks, all working now!