Yemilice

博客已经迁移:https://www.yemilice.com/ 文章不会再双更新,感谢多年陪伴,新博再见。

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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.
posted on 2016-12-24 13:39  Yemilice  阅读(286)  评论(0编辑  收藏  举报