Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do we use fixed-width fonts in our IDEs? [duplicate]

Possible Duplicate:
Why use monospace fonts in your IDE?

Virtually all coders (and code editors) use fixed width fonts. Why is this?

like image 758
user128807 Avatar asked Jun 23 '10 07:06

user128807


2 Answers

Probably because it makes the code easier to scan - you have "blocks" of code, ie. text that lines up vertically far more often than you would in normal prose. If the font is not fixed width than it wouldn't be visually aligned.

like image 145
EMP Avatar answered Oct 04 '22 22:10

EMP


It greatly enhances readability - expecially of punctuation characters which have a very important role in code and which variable width fonts often "squeeze" into minimal space.

like image 38
TechPreacher Avatar answered Oct 04 '22 23:10

TechPreacher