简体   繁体   中英

VSCODE Status Bar Color Is Fixed

I am using VSCODE 1.46.1.

The color (purple) in the status bar is fixed. It is not changing no matter how much I change the theme.

To make sure it is not caused by any extension, I have disabled all extensions.

To make sure it is not caused by any settings, I have removed everything from the settings.json file except the following lines:

{
    "workbench.colorTheme": "Default Light+"
}

Still the taskbar looks the following.

在此处输入图像描述

What might be the issue here?

{
    "workbench.colorCustomizations": {
        // Status bar when a folder or workspace is active
        "statusBar.background": "#ff0000",
        "statusBar.foreground": "#ff0000",
        "statusBar.border": "#ffff00",

        // Status bar when VSCode is in debugging mode
        "statusBar.debuggingBackground": "#ffffff",
        "statusBar.debuggingForeground": "#000000",
        "statusBar.debuggingBorder": "#ff0000",

        // Status bar when no folder or workspace has been opened. 
        "statusBar.noFolderBackground": "#ff0000",
        "statusBar.noFolderBorder": "#0000ff",
        "statusBar.noFolderForeground": "#00ff00"
    }
}

If you want to change the status bar when you've got no folders open, you can use

"statusBar.noFolderBackground": "#ffffff"

these are the settings that change your status bar colors. Verify if you have any added to your settings.json or in any workspace file or a settings.json in your .vscode folder.

I was having the same problem after I installed and uninstalled a color extension. I tried to modify the settings.json file to no avail. I found that my problem was that the extension had modified the *.code-workspace file and added these lines

"settings": {
"workbench.colorCustomizations": {
  "activityBar.background": "#312F07",
  "titleBar.activeBackground": "#444209",
  "titleBar.activeForeground": "#FCFBE9"
}

}

This configuration was overriding the rest. The solution was simply to remove them from every workspace file, which allowed the activity bar color to be back to its normal behavior (clear color for light themes and viceversa).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM