Skip to content

Comment on Why I Two-Space

Comments

> Text editors use monospaced fonts!

> It doesn’t matter what editor you use. Vim, Emacs, TextMate, Sublime Text, Eclipse, Gedit, Notepad++? All of them use monospaced fonts.

No they don't. What silliness is this?

From the author's list, Sublime Text, Eclipse, Gedit, and Notepad++ all support proportional fonts.

Of the other editors I use frequently, Komodo IDE, Visual Studio, UltraEdit/UEStudio, XML Marker 2, and MarkdownPad among others all support proportional fonts.

So write in a monospaced font if that's what you prefer, but nobody is making you do it.

Do you use a proportional-width font for viewing code?

Yes I do, and greatly prefer it. Just as the written word is more readable in a proportional font, code is too. And more of it fits on the screen!

The only thing that doesn't work in a proportional font is column alignment tricks. (Basic indentation works fine.) That problem is easy to solve by not using column alignment at all. I find code easier to read and much easier to maintain when it doesn't use column alignment. When reading someone else's code that does use column alignment, I just switch to a monospaced font for that file.

I wrote on this at more length here:

http://news.ycombinator.com/item?id=4625340

If you're heavy into column alignment styles as in the examples from that comment, then a proportional font won't be for you. But if not, give it a try. It may seem strange at first but give yourself a chance to get used to it. You may find you like it, and if not, no harm done.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.