Open Resource window in eclipse shows pyc files

放肆的年华 提交于 2019-12-22 01:48:20

问题


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

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

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


回答1:


I found the solution!

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

under "resources" -> "resources filters":

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

\o/



来源:https://stackoverflow.com/questions/11807016/open-resource-window-in-eclipse-shows-pyc-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!