Blender comes with its own python and an inbuilt editor, however, the editor is not good enough. In this post, I show how to use visual studio code (VSCode) for python scripting in blender. This post assume that you already have experience working with VSCode.
First, you need to install the this blender extionsion for VSCode. Run the following command in vscode quick open (ctrl+shift+p)
ext install JacquesLucke.blender-development
After the installation, you can start blender and run the python scripts from vscode itself. To open