Search in Eclipse through project

前端 未结 4 1546
时光取名叫无心
时光取名叫无心 2021-02-05 10:56

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 metho

相关标签:
4条回答
  • 2021-02-05 11:16

    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

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-05 11:26

    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 讨论(0)
  • 2021-02-05 11:29

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

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