Reprint: http://blog.csdn.net/inowcome/article/details/6699227
In eclipse it's not easy to find the files you specify in a large number of projects, but Eclipse offers powerful search capabilities.
We can set the search condition by wildcards or regular expressions, here is an example of the operation:
Ctrl+h Open the Search interface
Search results:
Search by text content that a file may contain
Using file search will satisfy most of the features of our search. Using the functionality of this tab, we can provide a file that may contain text content
For a fuzzy query, this process allows you to further control the scope of the search, such as setting up a search for only XML files. Note the need to write *.xml and not just. xml
Search by file name
Search results:
There are two points to note:
- Containing text: fill in *
- File name patterns: can be filled according to the situation, such as only know the file name, do not know the extension, can be written as: hello.*
This makes it easy to search for the files we need (assuming it exists, of course).
TAB Java Search uses
Search results
The method used is simple, similar to file search, but we need to pay attention to the selection of red areas in the image. It can affect the results of the search,
We need to make the appropriate choice according to the actual needs.
How to find specified files in a large number of projects in Eclipse (reprint)