Customize search(file) function in Eclipse
It is so weird that every time I want to search for a particular keyword in java files, my eclipse will look through all the java files and all the library rar. As a result, the search running time is very long since there are a lot of .rar files in my project.
I aware开发者_如何学Python that this problem never happen to the same java project before, just because I did some changes in class path.
If you do a File search, you can specify the scope of your search.
(source: eclipse.org)
Choosing "enclosing project" can help minimizing the number of files searched, limiting it to your files.
As mentioned in the comments, two extra steps can be required to ensure the set of files actually searched remains small:
- specify '
*.java
' (which you can do in a 'File Search'), - make sure also that "Consider derived resources" is not selected.
精彩评论