Visual Studio Code - filename color

Viewed 21319

For some reason, after the update, some filenames appear yellow. enter image description here

How do I disable it?

3 Answers

As part of the update, Visual Studio Code integrates the colour highlighting of Git version control into the main file explorer.

That’s why you’re seeing yellow for some files as changes have been made to them that have not yet been committed in Git.

You can remove the colour highlighting by adding this line to your settings.json file in VS Code, accessible via Preferences.

"git.decorations.enabled": false

If you wish, you can disable the Git integration entirely by adding these lines to the settings.json file instead.

{
...
  // Disable Git
  "git.enabled": false,
  "git.path": null,
  "git.autofetch": false
}

To generally disable the colors in the explorer, one can use the setting:

User/Features/Explorer/Decorations/Colors: false
Related