Reputation: 73
I'm using VS Code for editing my code, and one day it randomly decided to make all my files green. This is very distracting and hurts my eyes, and I can't find any way to disable it. What can I do? Image I think it is git doing this, but how do you stop it from making files green?
Upvotes: 7
Views: 28740
Reputation: 21
You probably created a hidden .git
directory inside your project's folder. This directory contains the Git repository's metadata and configuration, including information about the files and their states.
To see this directory, use ls -a
. To delete it, use rm -rf .git
Additionally, in vscode the untracked files are displayed in green.
Upvotes: 1
Reputation: 383
I had the same issue and in my case, it was solved by restart VS Code
Upvotes: 3
Reputation: 21
You can set it to normal by searching Untrack in VS Code setting and then set the GIT Untrack Changes to "Hidden"
Upvotes: 2
Reputation: 109
Go to the VS Code Settings -> Extensions -> Git. From there you can disable "Decorations".
Upvotes: 2
Reputation: 190
If you're inside a git repository, VSCode does this to show you that those files are currently untracked / not added.
If you don't care about git, you could just delete the .git folder.
If you do care about it, then go to your settings.json
and add these lines
// Whether git is enabled.
"git.enabled": false,
Upvotes: 8