问题描述
我在 SO 上看到了几个字体主题,似乎大多数人使用等宽字体来完成编程任务.几年来我一直在使用 Verdana 进行编程,我真的很喜欢增强的可读性,而且没有遗漏任何与等宽相关的内容.
I've seen a couple of font topics on SO and it seems a majority of people use monospace fonts for programming tasks. I have been using Verdana for programming for a couple of years and I really like the enhanced readability, without missing anything monospace related.
为什么要使用等宽字体?
Why do you use a monospace font?
推荐答案
在等宽字体中:
等长字符串字面量看起来相等.更容易看到细小的标点符号,例如:() {}相似的字符看起来更不同:Il 0O vsIl 0O
您知道一行是否会在 X 个字符宽的窗口上换行.这意味着您的团队可以将 100 个字符行标准化,并且一行总是看起来像一行