Development Tip: Change Your Coding Font
Just posting a quick tip about a topic that most people would probably not consider: changing your font in your IDE. I highly recommend Consolas on Windows, and the very similar Inconsolata on the Mac, which are by far the best fonts I've found for coding. It sounds a bit crazy, but a little thing like this can make a big difference in your productivity, especially when you're literally staring at it all day! Check it out compared to Courier New, a common default font:
Consolas / Inconsolata:
Now Courier New:
To me, the difference in sharpness and clarity is quite significant! Give it a try and see what you think.




I got my new laptop recently and have been trying to get Eclipse looking nice on the smaller screen. White's look quite grainy so I've changed the background colour to try and improve it. I also played with the font size somewhat but didn't know what font face to try out. I'll experiment with your recommendation and see how I go. I've definetely been getting some eyestrain so far.
Oh and what background colour are you using? Could you post the hex reference please?
the first thing i do when i'm loading up a new machine is to install profont windows so i can use it in eclipse (currently have it set at font size 9)
http://www.tobias-jung.de/seekingprofont/
altho i'm noticing it's a little difficult to read when it's bolded (either eclipse or cfeclipse bold the keywords in SQL statements). i could change that in the eclipse preferences, but i might take consolas for a spin too. given the amount of time i spend staring at code, always on the lookout for good programming fonts :)
@Charlie: I'm interested to see what you think after the switch.
@Andy: Hey if you have one you like, stick with it! :-) I'm just pointing it out mainly for the folks who leave things set to the defaults. Veranda looks nice but it's a little wide for my taste.
The next change is finding the 'perfect' background colour.. White is just awful on my laptop - far too difficult to work with which is why I generally favour a light yellow like you.. Just finding the right balance for the laptop display.
http://www.codinghorror.com/blog/archives/000157.h...
I like Dina for coding - http://www.donationcoder.com/Software/Jibz/Dina/in...
I tried Consolas a while back, but actually prefer the Dina font:
http://www.donationcoder.com/Software/Jibz/Dina/in...
The thing that I really like over Consolas, was it was more compact and just as readable. This allows me to have more characters on the screen width-wise, which I really like.
Thanks for the reminder that I don't have to settle for the default settings...
Thanks for pointing us to another option. Thanks to Charlie I've also been using ProFont for what seems like forever now, and like it a lot. I've installed Consolas and am giving it a test run. My first impression is that I am not sure I like it better, but I'm equally as unsure that I like it less. ;-)
Matt
could just be a matter of "what one's used to" tho. i do like the crispness, so i think i'm going to stick with it for a bit to see if i can get used to the characters themselves.
Thanks for that although I grabbed the page earlier and grabbed the colour ref out so it's all good.
I quite like Consolas - definetely better than Courier New. Though I'm going to check out the great links posted.. This is a great post..
Really liking how Consolas is looking on my laptop.
http://en.wikipedia.org/wiki/Andale_Mono
Thanks,
Dan
regards,
larry
http://damieng.com/blog/2007/11/14/droid-sans-mono...
I really like that one in Textmate for example. Haven't tried it in Eclipse.
I wonder if I had a CRT if I'd feel different?
I totally agree! I switched fonts on my laptop when I first read the blog post and find Consolas a fantastic font. Initially my new laptop was giving me eyestrain in Eclipse and I thought it might not be a viable development platform... I've now found that I do much of my best work sitting in my recliner with the laptop, Eclipse and Consolas.. ;)
I did try the other fonts mentioned, but like you they just didn't feel right..
Thanks again Brian for a superb post.