在 Eclipse PyDev 中,有没有办法从 Pydev 包资源管理器中排除任意文件类型?
如果您在 PyDev Package Explorer 中单击类似向下三角形的图标,然后选择“自定义视图”,则“可用自定义”弹出菜单允许用户选择哪些标准文件集在包中可见探险家。
如果您希望从视图中排除或包含某些标准类型的文件,那就太好了,但是我想排除 PyDev 当前未知的类型。
在这种情况下,我想排除“*,cover” - 这是任何自动生成的覆盖率报告文件。每当您尝试运行覆盖率分析时,PyDev 都会创建这些文件,但似乎没有办法从视图中排除这些文件。我很想隐藏所有“,cover”文件,以减少包资源管理器中的混乱。
If you click on the icon resembling a downard-pointing triangle in the PyDev Package Explorer and then select "Customize View", The "Available Customizations" pop-down allows the user to select which of a standard set of files are visible in the package explorer.
That's great if you wish to exlude or include certain standard types of file from the view, however I'd like to exclude a type which is currently unknown to PyDev.
In this case, I'd like to exclude "*,cover" - that's any automatically generated coverage report file. PyDev creates these files any time you try to run a coverage analysis but does not seem to have a way of excluding these files from the views. I'd love to hide all the ",cover" files in order to reduce the clutter in my package explorer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
向下箭头的左侧是“设置自定义过滤器”按钮。您可以输入以逗号分隔的自定义过滤器。如果该文件名中确实包含逗号,则您必须将过滤器输入为
*cover
,因为*,cover
被视为两个单独的过滤器。To the left of the down arrow is the "Setup custom filters" button. You can enter custom filters delimited by commas. If that file name indeed has a comma in it, then you will have to enter the filter as
*cover
since*,cover
is treated as two separate filters.