eclipse中的“打开资源”窗口显示pyc文件 [英] Open Resource window in eclipse shows pyc files

查看:796
本文介绍了eclipse中的“打开资源”窗口显示pyc文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在eclipse中,打开资源窗口(热键到Cmd + Shift + R)通过键入它的名称打开文件似乎显示* .pyc文件,尽管导航器视图正确隐藏它们。

In eclipse the Open Resource window (Hot keyed to Cmd+Shift+R) to open a file by typing it's name seems to show *.pyc files despite the Navigator view correctly hiding them.

有没有办法将其设置为忽略PYC文件?

Is there anyway to set this up to ignore PYC files?

我已经看过以下链接,似乎pydev可能需要一个src文件夹在主eclipse文件夹下。我没有那个结构,但是完整的项目在Pydev - PYTHONPATH项目属性下被标记为'源'文件夹。

I have looked at the following links and it appears that pydev may require a src folder underneath the main eclipse folder. I do not have that structure however the full project has been marked as a 'source' folder in Pydev - PYTHONPATH under project properties.

http://sourceforge.net/projects/pydev/forums/forum/293649/topic/2183420
http://pydev.org/manual_101_project_conf2.html

推荐答案

我找到了解决方案!

CMD +我在项目文件夹(或右键单击 - >属性),然后:

CMD+i on the project folder (or "right click" -> properties), then:

在资源 - >资源过滤器下:

under "resources" -> "resources filters":


  • 点击添加

  • 选择全部排除

  • 选择文件和文件夹

  • 在底部的文本字段中检查所有小孩(递归)

  • 键入 *。pyc

  • 确定

  • 申请

  • ok

  • click "add"
  • choose "exclude all"
  • select "files and folders"
  • check "all children (recursive)"
  • type *.pyc in the text field at the bottom
  • ok
  • apply
  • ok

\o /

这篇关于eclipse中的“打开资源”窗口显示pyc文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆