问题
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