Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is this marked number Next to the File name in Visual Studio Code

I know the meaning of M as "modified" on the right side of the file name.

But what is that number 4 next to the M ?

Is there a name for these marks?
Any docs of this will helpful!

example image

like image 677
stefancho Avatar asked Jun 11 '20 15:06

stefancho


People also ask

What does 1 m mean in VS Code?

M - Modified (An existing file has been changed) D - Deleted (a file has been deleted) U - Untracked (The file is new or has been changed but has not been added to the repository yet)

What is untracked files in VS Code?

'U' stands for untracked file, meaning a file that is new or changed but has not yet been added to the repository.


2 Answers

That is the number of linting errors and warnings currently in the file.

To see the actual errors and their details, open the Problems panel, which by default is at the bottom part of the editor. (If it's not shown, open it by going to the menu View > Problems).

like image 63
Goofballtech Avatar answered Sep 26 '22 02:09

Goofballtech


As @Goofballtech mentioned, this is the number of errors & warnings associated with a given file. You can turn this off by setting problems.decorations.enabled to false in your VSCode settings.json.

You can find more information here: https://code.visualstudio.com/updates/v1_20#_error-indicators-in-the-explorer

like image 33
Kyle Chadha Avatar answered Sep 22 '22 02:09

Kyle Chadha