Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop PyCharm show files in project in red color?

I would like to create project in PyCharm by open directory. I use https://github.com/metachris/tornado-boilerplate as a root of the project. I encountered that files are shown in red color in project window. It's really annoying thing.

I found this File Status Highlights. But I can't figure out how to get rid of the issue.

enter image description here

When I open empty directory and then create file just

$ touch file

It's color is red too.

like image 337
4xy Avatar asked May 21 '15 22:05

4xy


3 Answers

Did you start you project within a directory that is under version control? The red color normally shows up when files are in a version controlled directory, but are untracked.

If this is the problem, you can solve it a few ways:

  1. Add all of the files to your vcs.
  2. Add the files to the ignore file of your vcs (.gitignore if you're using git)
  3. Move the project out of the repo under vcs.
like image 172
Adam Funderburg Avatar answered Oct 17 '22 09:10

Adam Funderburg


You can change the file color to whatever you want. File > Settings > Editor > Colors&Fonts > File Status > (Unkown > foreground).

The files in Pycharm are under Version Control. Pycharm changes the file's color by the status of file. The 'red' color of the file you mentioned indicated that the file is 'Unkown' status to the version control. If you add the 'Unkonwn' file to version control and commit to repository, the 'red' color can be changed.

like image 9
X.He Avatar answered Oct 17 '22 08:10

X.He


Judging by the brown color of your files it looks like your project directory is under version control and that all the files in your project are not versioned. Check your File | Settings | Version Control settings and check the VCS status of these files in View | Tool Windows | Version Control | Local Changes.

like image 3
Andrey Vlasovskikh Avatar answered Oct 17 '22 09:10

Andrey Vlasovskikh