Having already installed micropy-cli, clone or download this repo and issue the following command:
micropy stubs add "<path to dist/micropy-cli folder in this repo>"
For example:
micropy stubs add "C:\Pico-Stub\dist\micropy-cli"
If you haven't already installed Pylint, do so as follows:
pip install pylint
Just follow the instructions over on the Micropy CLI readme!
The recommended micropy init
templates are:
VSCode Settings for Autocompletion/Intellisense
Pylint MicroPython Settings
Optionally, if your project will end up in a Git repository, add Git Ignore Template
too.