user753531
user753531

Reputation:

Sublime Text misaligned columns

This is a screenshot of a code fragment viewed in Sublime Text 3 in Windows 7:

Windows

And this is a screenshot of the same code fragment in Sublime Text 3 in Linux Mint 17 (Qiana)

Linux

You might not believe but this little thing is bothering me since I started programming in the Linux environment.

Is there a bug with Sublime Text 3 columns alignment in Linux environment or it's just a matter of configuration? Is it fixable?

Upvotes: 0

Views: 149

Answers (1)

MattDMo
MattDMo

Reputation: 102852

You are using a monospace (fixed-width) font in the upper image, and a sans-serif (variable-width) font in the lower. Open up your font library program in Mint and find a monospace font you like (I prefer Liberation Mono, but you may need to install it). Then, in Sublime, select Preferences -> Settings-User and add the following:

"font_face": "Liberation Mono"

(or whatever font you chose). Save the file, and you should be all set.

Upvotes: 0

Related Questions