kiliman / operator-mono-lig

Add ligatures to Operator Mono similar to Fira Code
MIT License
3.2k stars 202 forks source link

Italic font on comments #150

Closed balduinofernando closed 3 years ago

balduinofernando commented 3 years ago

Hi guys, I'm using OperatorMonoLig-Book as my main font, and it's working OK, but I wanted to display OperatorMonoLig-BookItalic when I comment something or specifying an attribute. Is it possible? PS: My editor is VS Code.

mskelton commented 3 years ago

@balduinofernando Apologies for the late reply. This is something that can be handled in one of two ways:

  1. Find an editor theme that supports this out of the box. I will shamelessly plug my VS Code One Dark theme
  2. Override the italic setting for specific scopes in your vscode settings. This would look something like this.
"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "name": "Italic comments",
      "scope": ["comment"],
      "settings": {
        "fontStyle": "italic"
      }
    }
  ]
}