[英]Don't display .pyc files in the Xcode 4 project navigator
I'm working on a fairly large django-project in Xcode 4. I prefer not to see all the automatically generated .pyc files in the project navigator. 我正在Xcode 4中处理一个相当大的django项目。我不希望在项目导航器中看不到所有自动生成的.pyc文件。
Does anyone know a way to hide the .pyc files from the interface? 有谁知道从界面隐藏.pyc文件的方法吗?
I don't necessarily want to remove them from disk. 我不一定要从磁盘中删除它们。
Thanks. 谢谢。
- --
What fails: 什么失败:
The best I can come with is the way I do it: By dragging only the .py files into the XCode project at the start. 我所能提供的最好的方法是:首先将.py文件拖到XCode项目中。 It's not ideal;
这不理想; there should be a way to filter out build files.
应该有一种方法可以过滤出构建文件。 This method also isn't great for sub-folders, since you have to create each folder and then drag the .py files in for each folder by hand.
此方法对于子文件夹也不是很好,因为您必须创建每个文件夹,然后手动将每个文件夹中的.py文件拖入其中。 But it works, and now I have no .pyc files in my project.
但这有效,现在我的项目中没有.pyc文件。 Also, irritatingly, I can't delete .pyc files from the project once they're in there, so controlling things from the outset is the only solution I found.
另外,令人烦恼的是,一旦项目中存在.pyc文件,我便无法删除它们,因此从一开始就控制一切是我找到的唯一解决方案。
given that this has not been answered directly here is an alternative solution using another programming software which is Coda 2. 鉴于尚未直接回答,这里是使用另一种编程软件Coda 2的替代解决方案。
You can create a rule that will hide those files, here is how to proceed : 您可以创建一个规则来隐藏这些文件,这是如何继续进行操作:
This is taken from this website for sourcing purpose. 这是从本网站获取的用于采购目的。 It contains images illustrating this.
它包含说明这一点的图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.