Fix blurry/thin font on macOS Mojava
Apple disables the subpixel font anti-aliasing on macOS mojava. It makes most of the font become blurry and thin. Most of the programs such as VS Code, firefox have this program.
If you are using a retina display, it is not a problem that all of the graphics are rendered in high DPI mode. But in a non-retina display, everything looks horrible.
Solution
These commands can enable the font smoothing feature on your macOS. You need to re-login your account or restart your computer to take effect.
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO defaults -currentHost write -globalDomain AppleFontSmoothing -int 3
Reference:
https://github.com/Microsoft/vscode/issues/51132
https://www.howtogeek.com/358596/how-to-fix-blurry-fonts-on-macos-mojave-with-subpixel-antialiasing/