Initial Setup
Python Environment
For code completion of external Python modules, you can use the venv that is generated as part of the build process. After building Anki, the venv will be inout/pyenv. In VS Code, use ctrl/cmd+shift+p, then ‘python: select
interpreter’.
Rust
You’ll need Rust to be installed, which is required as part of the build process.Build First
Code completion partly depends on files that are generated as part of the regular build process, so for things to work correctly, use ’./run’ or ‘tools/build’ prior to using code completion.Visual Studio Code
Setting up Recommended Workspace Settings
To start off with some default workspace settings that are optimized for Anki development, please head to the project root and then run:Installing Recommended Extensions
Once the workspace settings are set up, open the root of the repo in VS Code to see and install a number of recommended extensions.PyCharm/IntelliJ
Setting up Python environment
To make PyCharm recognizeanki and aqt imports, you need to add source paths to Settings > Project Structure.
You can copy the provided .idea.dist directory to set up the paths automatically:
out/pyenv (available after building Anki).