zeecaniago's avatar

All files colored red in Phpstorm

Hi everyone,

It's been bugging me for a while. So, I install Laravel and for some weird reasons, all the files in my Phpstorm show all red. I assume there might be some file error or something. But, I couldn't find one.

Does anyone experience the same thing as well?

0 likes
5 replies
kfirba's avatar
kfirba
Best Answer
Level 50

@zeecaniago hey there.

Rest assure there is no file error. The files are red because you are using git. I bet that if you run git status you will see that all of the files are new and you need to add them.

Basically, with PHPStorm the files colors determine:

  • red - new file in git
  • yellow/orange - file has been changed
  • green - file has been added (git add)
  • regular - the file is up to date with the current git commit

That's all ;)

4 likes
zeecaniago's avatar

Thanks everyone.

@kfirba actually, I don't use .git for this project. I tried git status and it gave me "fatal: Not a git repository" error.

@coder Thanks for the link. I found out that the error was because PhpStorm thought the files are unknown. So, if I go to Preference > File Status, there is an option of "Unknown". If I disable that, the red color disappears. But, it's weird tho. Why would PhpStorm thinks that the files are unknown? any idea?

coder's avatar

i think it is unknown as per the git not for Phpstorm . read the link description and @kfirba 's comment again .

zeecaniago's avatar

Oh, I think I found what the issue is (after one year. haha!). At least for my local, when I changed the "vcs" column to "git" (by default it's "svn"), the files changed to white/normal again. They were actually not red, but "brown"-ish.

Please or to participate in this conversation.