How to stop PyCharm show files in project in red color?(如何停止 PyCharm 在项目中以红色显示文件?)
问题描述
我想通过打开目录在 PyCharm 中创建项目.我使用 https://github.com/metachris/tornado-boilerplate 作为根项目.我遇到文件在项目窗口中以红色显示.真是烦人的事.
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.
当我打开空目录然后创建文件时
When I open empty directory and then create file just
$ touch file
它的颜色也是红色的.
推荐答案
您是否在受版本控制的目录中启动项目?当文件在版本控制目录中但未被跟踪时,通常会显示红色.
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:
- 将所有文件添加到您的 vcs 中.
- 将文件添加到 vcs 的忽略文件(如果您使用 git,则为 .gitignore)
- 将项目移出 vcs 下的 repo.
这篇关于如何停止 PyCharm 在项目中以红色显示文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何停止 PyCharm 在项目中以红色显示文件?
基础教程推荐
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
