Home > OS >  How achieve Bold-Italic style ins vscode theme json file?
How achieve Bold-Italic style ins vscode theme json file?

Time:11-01

Recently, I was editing a VS Code theme .json file. I wanted to achieve Bold-Italic style for my theme, but I am confused in this part:

   {
      "name": "Keywords",
      "scope": "keyword",
      "settings": {
        "foreground": "#8A31B9",
        "fontStyle": "bold"
      }
    },

in "fontStyle": "bold" it will either take "bold" or "italic".

What should I do?

CodePudding user response:

You add italic and bold in the same line.

 {
      "name": "Keywords",
      "scope": "keyword",
      "settings": {
        "foreground": "#8A31B9",
        "fontStyle": "bold italic"
      }
    },
  • Related