Skip to Content

Improving TextMate’s Line-Height

A discovery posted
about tips & textmate.
As presented by the remarkable Fred LeBlanc.
now with 544 reads

The problem that I have with most fixed-width fonts is that their line-heights are too small by default. I found a hacked version of Consolas that I’ve been using for a while, but it always bothered me that TextMate didn’t have a way to configure line-height for any font.

Well, you can fix it in Terminal. To adjust line-height to your liking, type this into your terminal:

$ defaults write com.macromates.TextMate OakLineHeightDelta 2

This won’t affect any code windows you have open, but the next time you open a file you’ll see the new line-height. To give you an idea of what’s happening, the default line-height seems to be 1. You don’t have to use 2, pick any whole number you’d like.

I like it, my code feels a bit less cramped and closed in.

Recent Fredlines

See More

Fred LeBlanc is trying to make the web a better place. He develops, designs, writes, improves, constructs, invents, and creates (hopefully) interesting content and projects.

He’s reasonably well-known for his jQuery plugin, he co-runs a meet up for web folks and he’s been known to make a TextMate theme or two.

Learn More