1

I have default blue colour status bar in visual studio code and I am fine with it.

enter image description here

see below:

When I am running any java file, status bar blinks and changes to orange intermittently before turing back blue again. This orange blinking is quite annoying.

I checked preferences: Settings(json) but don't see any option where its configured to change colour when running any java file: It looks below when java program running is in progress:

enter image description here

Avneet
  • 393
  • 4
  • 15

3 Answers3

3

You can change colour of status bar in setting by adding colour customization as below in open settings file

"workbench.colorCustomizations": {
    "statusBar.background" : "#1A1A1A",
    "statusBar.noFolderBackground" : "#212121",
    "statusBar.debuggingBackground": "#263238"
}
sanjeevRm
  • 1,541
  • 2
  • 13
  • 24
  • Thank you for info but i was looking to avoid colour change which was happening because of debug getting enabled. – Avneet May 26 '21 at 05:21
1

That's because you may run the file by Pressing F5, which is keyboard shortcuts for Start Debugging.

enter image description here

So different color in terminal bar is to distinguish debug from run these two status.

enter image description here

Click the triangle run button enter image description here or press Ctrl+F5 to Run without debugging can both avoid the orange bar.

Molly Wang-MSFT
  • 7,943
  • 2
  • 9
  • 22
1

There is a recent commit which addresses this: https://github.com/microsoft/vscode/commit/7f6a92727c3c40dc94ace4c0ee9265481c5424c5

It looks like the setting to disable the status bar changing color on debug will be:

debug.enableStatusBarColor

The default is true so you will have to set it to false to disable it.

Mark
  • 143,421
  • 24
  • 428
  • 436