When typing in Open Resource dialog, is there a way to find files by directory instead of just the file name?

≯℡__Kan透↙ 提交于 2019-12-04 17:11:42

问题


I have been using extensively Ctrl + Shift + to find and open files in my Eclipse project. But sometimes I know the directory where my files are (or part of it) but I don't know exactly their names.

When doing search, it seems it only takes into consideration the name of the files, and not their paths. I'd like to be able to refine the search by path.

For instance, if I have a folder X with 3 files in it, I'd like that typing X would bring up the 3 files, so I could choose them. Or that it'd actually let me select the X folder itself!

Is there a way to do this in Eclipse?


回答1:


  • Use Ctrl + Shift + R to bring up the 'Open Resource' dialog
  • Type *X/ to list all files in the folder X. Ex search: *myDir/myFile.
    Important: the preceding asterisk (*) is required to make the search apply to folders and paths too.



回答2:


Here are the implementation notes: https://bugs.eclipse.org/bugs/show_bug.cgi?id=86973



来源:https://stackoverflow.com/questions/5752342/when-typing-in-open-resource-dialog-is-there-a-way-to-find-files-by-directory-i

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