PyCharm setup
The free community edition of PyCharm has good out of the box support for Python: https://www.jetbrains.com/pycharm/. You can also use other editors like Visual Studio Code, but we find PyCharm gives the best results. Over the last year, Anki’s codebase has been updated to add type hints to almost all of the code. These type hints make development easier, by providing better code completion, and by catching errors using tools like mypy. As an add-on author, you can take advantage of this type hinting as well. To get started with your first add-on:- Open PyCharm and create a new project.
- Right click/ctrl+click on your project on the left and create a new Python package called “myaddon”
__init__.py file. If you see a spinner down the bottom, wait for it to
complete. Then type in: