Thursday, July 9, 2026

VS code color change of font in menu - In side bar - explorer - Visual code color change of font

 

In settings.json change below code:-


 "workbench.colorCustomizations": {

    // Changes the default text color of the sidebar/explorer

    "": "#758b7c", 

    "sideBar.foreground":"default",

    // Changes the text color of the currently selected/focused file

    "list.focusForeground": "#FFD700", 

    "menu.foreground":"#020202",

    // Changes the text color of active files or items when hovering

    "list.activeSelectionForeground": "#8400ff31",

    "list.hoverForeground": "#6e0ad2",

    "menu.selectionForeground": "#FFFFFF",

"menu.selectionBackground": "#be1919c6"


}


For changing color of keywords(font in text editor):-

"editor.tokenColorCustomizations": {"textMateRules": [
        {
            "scope": "storage.type",
            "settings": {
                "foreground": "#000000",
                "fontStyle": "bold"
            }
           
        }
    ]}

For changing color of this and return keyword

"editor.tokenColorCustomizations": {"textMateRules": [
        {
            "scope": "variable.language",
            "settings": {
                "foreground": "#666666",
                "fontStyle": "bold"
            }},
            {
            "scope": "keyword.control",
            "settings": {
                "foreground": "#666666",
                "fontStyle": "bold"
            }
        }
    ]}

No comments:

Post a Comment