Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code changing modified file colors in Explorer

I am not a huge fan of the peach color in the explorer for modified files. Searching through the color theme reference I can't seem to find an override..

https://code.visualstudio.com/docs/getstarted/theme-color-reference

I've even tried disabling extensions and I am still seeing those predefined colors.. I am using the Monokai Soda theme but that doesn't seem to be what is setting those colors in the sidebar.. enter image description here

Any help appreciated - it's kinda driving me crazy..

ANSWER

Needed a combo of error style and git overrides, see answer below:

"workbench.colorCustomizations": {
    "list.errorForeground": "#b3e5ec",
    "list.warningForeground": "#00d9ff",
    "gitDecoration.modifiedResourceForeground": "#00ffb3",
    "gitDecoration.untrackedResourceForeground": "#f7aeae"
}
like image 356
Bess Avatar asked Aug 20 '18 19:08

Bess


1 Answers

Turns out that the colour you're seeing isn't due to modified content. It's due to having problems/errors in your file. If you hover over the file name you should see x problems detected in this file.

To change the colour of those, you can use

"workbench.colorCustomizations": {
    "list.errorForeground": "#00AA00"
}

The colour for modified files looks like the colour that settings.json is highlighted in, aka light green.

like image 53
Zain Patel Avatar answered Sep 18 '22 12:09

Zain Patel