Download the premade module from GitHub.
Use Git and clone fake-bpy-module repository.
$ git clone https://github.com/nutti/fake-bpy-module.git
or
Download .zip file from GitHub.
https://github.com/nutti/fake-bpy-module/archive/master.zip
Check the location of premade module and remember it because we use it process 3.
The premade module is located in premade_modules
.
You can see each version of the premade module on there.
Download the visual studio code extension for Python and restart the visual studio code.
Add the path for the auto completion from Visual Studio.
- Click File > Preferences > Settings.
- On
settings.json
page, add premade module path topython.autoComplete.extraPaths
- Example of settings.json
{
"python.autoComplete.extraPaths": [
"<path-to-repository>/fake-bpy-module/premade_modules/2.79/2.79b"
]
}