@aronu The screenshot is of VS Code?

Either way, see
https://netfree.link/wiki/Installation_of_certificate_in_Android_Studio#:~:text=Note%3A This solution is probably not useful for the gradle subprocesses that the IDE runs. It turns out you will get gradle errors and need the next solution.

In general, the wiki has solutions for many popular programs