Searching a string in eclipse workspace

后端 未结 10 1896
闹比i
闹比i 2021-01-30 19:20

How to search for a string in the complete eclipse workspace? I was not able to locate a text in the eclipse workspace however I could not find the specified string in the work

相关标签:
10条回答
  • 2021-01-30 19:47

    At the top level menus, select 'Search' -> 'File Search' Then near the bottom (in the scope) there is a choice to select the entire workspace.

    For your "File search has encountered a problem", you need to refresh the files in your workspace, in the Project/Package Explorer, right click and select "Refresh" at any level (project, folder, file). This will sync your workspace with the underlying file system and prevent the problem.

    0 讨论(0)
  • 2021-01-30 19:51

    Eclipse does not search if the "File name patterns" field is empty.
    So, if you want to search some text, write within "Containing text" field and leave
    by default "File name patterns" with asterisk (*).

    0 讨论(0)
  • 2021-01-30 19:57

    Press Ctrl+shift+L and type your string

    0 讨论(0)
  • 2021-01-30 20:00

    Ctrl+ H, Select "File Search", indicate the "file name pattern", for example *.xml or *.java. And then select the scope "Workspace"

    0 讨论(0)
  • 2021-01-30 20:03

    Press Ctrl + H, should bring up the search that will include options to search via project, directory, etc.

    Ctrl + Alt + G can be used to find selected text across a workspace in eclipse.

    0 讨论(0)
  • 2021-01-30 20:03

    Goto Search->File

    You will get an window, you can give either simple search text or regx pattern. Once you enter your search keyword click Search and make sure that Scope is Workspace.

    You may use this for Replace as well.

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