I was reading the release notes of Visual Studio Code and a particular caught my eye.
As you can see, there is a javascript file with the ≤ symbol. I can't figure out how it works, if I try to use it in my code I get a "Invalid or unexpected token" error (which I was expecting), and I can't find if it's only a VSCode configuration that shrinks <= into ≤ for aesthetic purposes.
How does it work?
It looks like a monospaced font with ligatures, which makes <=
looking as one sign.
Some sources:
This is just due to the font ligature. The actual characters are 2: <=
but the ligature renders them as one.
Some fonts support ligatures such as Fira Code and most likely you need to enable ligatures on your IDE if you want to use them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With