pycharmusability

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.


Solution

  • 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.