How to make eclipse “File Search” to also search inside source jars containing some text?

后端 未结 8 1514
眼角桃花
眼角桃花 2020-12-04 23:16

I am working on a (Java) project in which I have many jars which have a source-jar file attached.

Is there any way to make the eclipse \"File Search\" search for Jav

相关标签:
8条回答
  • 2020-12-05 00:05

    you can do like this. press ctrl-h -- > java search(the tab like file search)--search for: Field limit to:all occurrences scope:workspace then press search button

    0 讨论(0)
  • 2020-12-05 00:06

    The most practical way of achieving this is to expand all the jars / other archives you need to search in - using simple script to automate if they are too many. Put the files in a folder and create a generic Eclipse project from it or just put it in a sub-folder to your existing java project (without making it a resource of course). Then you can use Ctrl-H to search in and Ctrl-R to find resources by name.

    See the result:

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