Search code examples
jsonvisual-studioitalic

I can't for the life of me disable italics for VS Code


Okay, I'll keep it straight:

I don't know JSON files. I've tried copy pasting numerous online solutions directly into settings.json to disable italic font for VS Code. None of them ever worked.

Here's what I tried:

I use Fira Code Font and Tokyo Night Color Theme. Does this combination somehow make it impossible for me to deactivate italics? The only words bothering me are "if, else, in, for, while" etc...

Can someone shed some light on this programming noob? Am I doing something wrong? Is it just impossible?

Also, I've messed around so much that, when "Inspecting Editor Tokens and Scopes", when I select a for this is what it shows:

image


Solution

  • Add this to the settings.json

    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": [
                    "comment",
                    "punctuation.definition.comment",
                ],
                "settings": {
                    "fontStyle": ""
                }
            }
        ]
    },