Disable italic syntax highlighting in VS Code

后端 未结 3 1135
悲&欢浪女
悲&欢浪女 2021-02-04 09:34

Some words (function, if, else, return, etc) are automatically formatted to italic is VS Code. How can I disable this behavio

3条回答
  •  礼貌的吻别
    2021-02-04 10:19

    You can add those configuration into your settings.json file:

    ...       
    "editor.tokenColorCustomizations": { 
                "[Material Monokai High Contrast]": {
                    "textMateRules": [
                        {
                            "scope": "entity.name.function",
                            "settings": {
                                "foreground": "#9DFF00",
                                "fontStyle": ""
                            }
                        }
                    ]
                },
            }
    

    [Material Monokai High Contrast] : The theme you want modify.

    You can try use ctrl + space as well to autocomplete and help you on that.

提交回复
热议问题