Cascadia-code: Feature Request: remove break between two = when enable ligatures

Created on 25 Aug 2020  路  2Comments  路  Source: microsoft/cascadia-code

Description of the new feature/enhancement (with images if possible)

when enabling ligatures, the old version font will display == like
image

however, updated to the latest version, it displays like
image

please revert this change, the reason why people enable ligatures are that they don't want to see a break between ==, if someone wants to see the break, why don't they disable the ligatures?

If doesn't revert this change, please offer a subversion that there is no break between two =

Issue-Feature

Most helpful comment

Initially, I thought the same as you鈥攖hat if you don't want ligatures, just turn them off. However, at the end of the day, legibility must trump any beautification of the code via ligatures.

As you read on the other thread, the concern is that = and == have a similar-enough length to one another that when glancing through code it can be easy to mistake one for the other. I've experienced that issue myself. So it makes sense to include a break there as a visual reinforcement of the code.

I'm open to consider adding a stylistic set that will enable you to switch to a non-broken version, though support for such functionality is dependent on the coding environment.

All 2 comments

Initially, I thought the same as you鈥攖hat if you don't want ligatures, just turn them off. However, at the end of the day, legibility must trump any beautification of the code via ligatures.

As you read on the other thread, the concern is that = and == have a similar-enough length to one another that when glancing through code it can be easy to mistake one for the other. I've experienced that issue myself. So it makes sense to include a break there as a visual reinforcement of the code.

I'm open to consider adding a stylistic set that will enable you to switch to a non-broken version, though support for such functionality is dependent on the coding environment.

I usually write golang and rust, both of them a==b is a bool, and a=b is a statement, it doesn't make me confused, besides the =='s length is not equal =, that reduces the possibility of confusion.

If you could add a non-broken version, I will be very grateful

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xmha97 picture xmha97  路  3Comments

teebeast picture teebeast  路  5Comments

hansswolfs picture hansswolfs  路  3Comments

alanbirtles picture alanbirtles  路  6Comments

ratishphilip picture ratishphilip  路  3Comments