Search for Folder Name Using Eclipse “Search in File”

前端 未结 1 1043
天命终不由人
天命终不由人 2021-01-20 19:44

How can I use \'search in path\' for Eclipse Mars 2.0 to find a string pattern in either the name of a file and also find a string pattern in the name of a folder?

相关标签:
1条回答
  • 2021-01-20 20:35

    Do not use Search dialog(Ctrl+H) for this. It searches inside the file content.

    Use open resource dialog(Ctrl+Shift+R). In the input pattern text box enter

    <Folder/File NamePatter>/

    For example:

    1. *handler/

      This will list all files which has handler string in their names and present under the folders which has handler string in their names.

    2. *handler/*nature

      This will list all files which has nature string in their names and present under the folders which has handler string in their names.

    See this post for more details When typing in Open Resource dialog, is there a way to find files by directory instead of just the file name? also look into this bug and read all comments.


    This may not interest to you but have a look on it:

    In this blog you can find the details of a plugin which filters resource in package explorer view by name patterns. But now its limited to filter only projects. Go through this bug and this bug

    0 讨论(0)
提交回复
热议问题