Berend
Berend

Reputation: 1079

Disable ligatures in Visual Studio

I found this question that is about enabling ligatures in Visual Studio, which appears to be automatic.

However, I don't like ligatures, so I was wondering if it is possible to disable them. I can't find anything in VS2017 or VS2019.

Upvotes: 21

Views: 6826

Answers (4)

Phrogz
Phrogz

Reputation: 303431

You can disable ligatures in the settings of VS Code in the JSON settings:

"editor.fontFamily": "Menlo, Monaco, Consolas, 'Courier New', monospace",
"editor.fontLigatures": false,

Enabled vs disabled:
ligatures enabled shows fl and fi
ligatures disabled shows consistent monospace glyphs

Upvotes: -2

Wojciech Stańczewski
Wojciech Stańczewski

Reputation: 833

Some time ago Microsoft created "Cascadia Mono" font, which is the same font as default in Visual Studio, but without ligatures.

You can download "Cascadia Mono" font from here: https://github.com/microsoft/cascadia-code/releases

Install this font on your machine, restart Visual Studio, select "Cascadia Mono" font, and you will achieve the same result as "disabling" ligatures in VS.

Upvotes: 9

Daniil Kozlov
Daniil Kozlov

Reputation: 121

I ran into that issue in VS2022 aswell when tried to install Jetbrains Mono font. But it occured that jetbrains provides same font without ligatures, it's name is followed by 'NL'

Upvotes: 12

ghsgz
ghsgz

Reputation: 174

I also want to disable font ligatures in VS2017 today, then I found this link in MSDN community site. They say:

Currently, Visual Studio doesn’t have the ability to disable font ligatures in the editor, so the only option you currently have available is to chose a font that doesn’t provide ligatures.

I think they are foolish about this.

Upvotes: 13

Related Questions