In software development we are using many operators and symbols. But in programming languages they are always represented with multiple characters (==, !=, >=, <=, =>, …), but still represent a single symbol. Almost all the code editors support font ligature and can be used to improve the rendering of source code on screen.

I’m using Visual Studio Code to develop in Golang.

I choose Fira Code font a Monospaced font with programming ligatures, but you can choose another font in a few alternatives.

Install Fira Code font

    $ brew tap caskroom/fonts
    $ brew cask install font-fira-code

Enable fontLigatures on Vscode

Add this lines at the end of the settings.json (File > Preferences > User Settings)

settings.json
1
2
3
4
{
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true
}

You have now an editor with fontLigatures !!!