javascriptvisual-studio-codeoperatorsligature

How can I change operators styling/shortening in VS Code


I'm wondering how I can prevent conditional operators like !== from looking like this:

enter image description here

I just want them to look like <= >= etc. as I read them easier.


Solution

  • These "operators styling/shortening" are called Ligatures. Writing style makes reading easy and convenient and can make your editor look better with awesome fonts along with ligatures.

    Check out your settings.json in VSC for:

    "editor.fontLigatures": true
    

    If you want to turn off font ligatures for a specific programming language (ex. PHP), than add this lines to a settings.json file in VSC:

    {
      "editor.fontLigatures": true,
      "[php]": {
        "editor.fontLigatures": false
      }
    }