JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.57k stars 299 forks source link

Temporarly switch off using ligatures #629

Open stenaksel opened 1 year ago

stenaksel commented 1 year ago

It would be nice to have a way to just in a comment add "ligatures off" above and "ligatures on" below the line(s) you don't want ligatures used. Here are some BDD scenarios descibing this: :-) (This behavior probably need help from the editor in use, but this is what I hope for)

Background: Given I use JetBrains Mono as default font

Scenario: Switch off using ligatures for just some lines in a file Given I would like to switch off using ligatures for some lines in a file When a commented line contains "ligatures off" Then use of ligatures will be switched off And stays switched off until a commented line below contains "ligatures on"

Scenario: Switch off using ligatures for a file Given I would like to switch off using ligatures for a file When a commented line contains "ligatures off" at the top And if no comment somewhere below contains "ligatures on" Then use of ligatures will be switched off for the whole file