visual-studio-codefonts

Can I enable character variants for fonts without enabling all other ligatures in VS Code?


I use Fira Code as my font in vscode and i want to use the alternative "a" (cv01) and "g" (cv02) without enabling all other ligatures (like "=>" or "==").

Fira Code says you should put those into "editor.fontLigatures" as "'cv01' 'cv02'", but that also enables all the other ligatures. is there a way to prevent this?


Solution

  • For details on the syntax of the editor.fontLigatures setting when using strings instead of a boolean, see the font-feature-settings CSS property (https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings#syntax). You can use 'liga' 0 to disable common ligatures.