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

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.

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.
原文地址:https://www.cnblogs.com/Yemilice/p/6217218.html