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

Time:10-13

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:

  • image

    CodePudding user response:

    Add this to the settings.json

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

    CodePudding user response:

    The solution to this, in my case, was to paste this code I found on the extension page in VS Code into settings.json:

    "editor.tokenColorCustomizations": {
            "[Tokyo Night]": { // or "[Tokyo Night Storm]"
                "textMateRules": [{
                    "scope": [
                        "comment",
                        "meta.var.expr storage.type",
                        "keyword.control.flow",
                        "keyword.control.return",
                        "meta.directive.vue punctuation.separator.key-value.html",
                        "meta.directive.vue entity.other.attribute-name.html",
                        "tag.decorator.js entity.name.tag.js",
                        "tag.decorator.js punctuation.definition.tag.js",
                        "storage.modifier"
                    ],
                    "settings": {
                        "fontStyle": ""
                    }
                }]
            }
        },
    

    To my understanding, this addressed my Color Theme directly, whereas other solutions didn't.

  • Related