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

后端 未结 8 1568
眼角桃花
眼角桃花 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: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:

提交回复
热议问题