My current favorite code font is Berkeley Mono https://usgraphics.com/products/berkeley-mono
It's not free, but I love it. You can customize some variations too (like how zeroes look; I use the "invisible slash" look) and it has some support for terminal symbols and programming ligatures used by terminal tweaks like Powerline, etc.