When you think of things that software programmers obsess over, typography probably doesn’t jump to mind. But when it comes to the best font to use when writing code, developers can get surprisingly passionate. Given the number of hours that programmers stare at code on a computer screen, though, it really shouldn’t be surprising.
The best programming fonts, it’s generally agreed, should, among other things, be monospaced (for code alignment), sans-serif, readable at (often times) a small font size and clearly distinguish between certain common characters (e.g., zero from the letter O, lower case L from the number 1).
Here are some of the most popular fonts with developers over the last 20+ years.