Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean when a file appears red on Visual Studio Code? [closed]

I am unsure why my file is appearing in red font. Here is what it looks like:

enter image description here

like image 766
Liv Marx Avatar asked May 07 '18 23:05

Liv Marx


People also ask

How do I get rid of the red dot code in Visual Studio?

Search for debug in settings, disable "glyph margin", and all related settings, this will disable the option to make debugging dots, if you just want to remove them all but not disable adding them, use the answers above.

What does red exclamation mean in VS Code?

The exclamation point is just the icon VSCode uses for .yml files.

What is the red dot in VS Code?

Visual Studio Code indicates the line on which the breakpoint is set by displaying a red dot in the left margin.

Why is my file Green in VS Code?

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. Save this answer.


2 Answers

This is a feature fix released back in January 2018. Here is the link for explaination - Error Indicators in the Exploer

It shows you which files have error:

the number of errors/warnings is shown in the decoration. The setting problems.decorations.enabled allows you to enable/disable the error/warning decorations.

like image 190
Code.Decode Avatar answered Oct 28 '22 18:10

Code.Decode


The reason is to show you that there is an error in the file. More information on this can be found here: VSCode Issues 782

As you can see here, the file appears red when something in the file is an error.

enter image description here

This type of information is considered to be file-decorations. More information on that here

like image 28
Riz-waan Avatar answered Oct 28 '22 17:10

Riz-waan