Ligatures

!!! From: https://github.com/tonsky/FiraCode !!!

problem

Programmers use a lot of symbols, often encoded with several characters. For the human brain, sequences like ->, <= or := are single logical tokens, even if they take two or three characters on the screen. Your eye spends a non-zero amount of energy to scan, parse and join multiple characters into a single logical one. Ideally, all programming languages should be designed with full-fledged Unicode symbols for operators, but that’s not the case yet.

all_ligatures

installation

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

visual studio code

Add "editor.fontLigatures": true to settings.json :

To open settings.json , from the File menu choose Preferences, Settings or use keyboard shortcut Cmd + , . Then paste the following lines and save the file.

1
2
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true

what it looks like

Go

go

Swift

swift

Ruby

ruby

JavaScript

js

Pieces of Valuable Programming Knowledges