When Emacs started supporting variable-width fonts well, I tried coding with them for a while. It works fine. I went back to monospace not because I'd been more productive, individually, with it, but because I needed to see my code the way others would see it.
There's a book https://www.amazon.com/Human-Factors-Typography-Readable-Pro... on typography for more readable programs.