DEV Community

loading...
Cover image for Fira Code - Font with programming ligatures  〽️

Fira Code - Font with programming ligatures 〽️

susomejias profile image Jesús Mejías Leiva ・2 min read

Source

This article is based on the official Fira Code documentation on GitHub .

Installing

MacOS

In the downloaded TTF folder:

  1. Select all font files
  2. Right click and select Open (alternatively Open With Font Book)
  3. Select "Install Font"

or

Not officially supported, might install outdated version

  brew tap homebrew/cask-fonts
  brew cask install font-fira-code
Enter fullscreen mode Exit fullscreen mode

Linux

or

  • In the ttf folder double-click each font file and click “Install font”; see “Manual Installation” if double-clicking doesn't work

FreeBSD

  • Using pkg(8): pkg install firacode

or

  • Using ports: cd /usr/ports/x11-fonts/firacode && make install clean

Windows

  • In the ttf folder, double-click each font file, click “Install font”; to install all at once, select all files, right-click, and choose “Install”

or

Run as administrator

  scoop bucket add nerd-fonts
  scoop install FiraCode
Enter fullscreen mode Exit fullscreen mode

How to enable ligatures

You need to explicitly enable ligatures support in following editors:

For other editors it must be enough to simply select Fira Code as your font of choice. Full list of supported editors

Example in VSCode

Alt Text

All ligatures included

Alt Text

Thanks for reading me. 😊

Discussion

pic
Editor guide