macosfontsvisual-studio-codemonospace

VSCode monospace fonts are not monospaced, how to fix this?


Not sure if I messed up something in the settings, even though all the fonts in Text Editor Settings are monospace fonts, but some words get rendered not monospaced, noticeably for 'fi', it seems that the 2 characters only occupy one space, like in 'file', 'fix', 'Identification', etc. What should I do to fix that?

I tried a number of different fonts and rearranged them. Currently the Font Family setting is: Menlo, Monaco, 'Courier New', monospace, but the problem never goes away.

macOS Mojave Version 10.14.6

VSCode Version: 1.37.0


Solution

  • That kind of "collapsing into a single glyph" for things like fi and fl are called ligatures. Why they'd be in a monospaced font at all, I have no idea, but you can turn those off in "settings" -> "ligatures" -> then making sure that checkbox is turned off.