开发者

Search in Eclipse through project

开发者_运维技巧

How to search in Eclipse through project for some word ? When I start CTRL-h I need to choose field, method or ...., but I need to find all occurences in project no metter method, field or .. ! How to achieve that ?


CTRL + H -> File Search -> Containing Text 'some word'
make sure the scope is set to workspace or enclosing projects. Choosing Selected Resources will narrow the result set to the folder or file you selected in the explorer.

Further if you know the file type that might contain the text you can use the File Name patterns with values like *.php, *.phtml, *.html


Ctrl + Alt + G might help finding Text in the new Version of Eclipse 3.7.


In order to accomplish it you need to customize your research:

Ctrl + H

then at the bottom of the search window click on Customize

check only FileSearch and unselect the rest of the options

then you can search for anywork in the project by selecting either worksapce or Enclosing project


If you are using InstaSearch Eclipse plugin you can easily filter searches by project:

proj:MyProjectName textToFind

or use ui to select a project to search in.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜