Skip to content
CodeFont
Font GalleryBest Coding FontsFeatures
Get Extension
English
English日本語简体中文繁體中文PortuguêsDeutschFrançais한국어
Font GalleryBest Coding FontsFeaturesHow It WorksGitHubGet Extension
  1. Home
  2. Best Coding Fonts
  3. What font is code written in?

What font is code written in?

Most editors display source code in a monospace font. The editor chooses the typeface, so the same Python file can appear in Consolas on one screen and Fira Code on another.

Font Installation & Setup Guides
  • Fira Code vs JetBrains Mono for reading code
  • Cascadia Code vs Cascadia Mono for code and logs
  • Change the VS Code integrated terminal font
  • VS Code editor font not changing? Check the fallback
  • Coding font readability test for 0/O and 1/l/I
  • A code font for Microsoft Word

See why equal widths help

Read the two rows below. Count the letters before each equals sign. In a monospace font, three i characters take the same space as three W characters. This keeps the signs in one column. Try the sample in the two specimens below at your usual reading size.

iii = 100
WWW = 200

Find the font in your editor

In VS Code, open Settings and search for editor.fontFamily. Read the list from left to right. For Latin text, the first installed family normally supplies the letters. A missing glyph can come from another font. Change the family and reopen the same file to compare its appearance.

  • Consolas specimen
  • Fira Code specimen

Resources

  • VS Code · editor fonts
  • Microsoft · Consolas

CodeFont

CodeFont is a local-only VS Code extension for finding, verifying, and applying monospace coding fonts to your editor and terminal.

Product

  • Features
  • Changelog
  • How It Works
  • Font Gallery
  • Best Coding Fonts

Resources

  • GitHub
  • Report a Bug
  • MIT License

Legal

  • About
  • Contact
  • Privacy Policy
  • Terms of Service
© 2026 CodeFont. All Rights Reserved.