Search JavaDoc in Eclipse

别来无恙 提交于 2019-11-30 13:06:18

问题


Is there a way to search in javadoc comments only (via Eclipse)? I just want to find text within a javadoc comment...


回答1:


The only way I can think of is to use Eclipse File Search dialog for all .java files and use this regular expression as input:

"(?s:/\*\*([^\*]|\*[^/])*?###INPUT###.*?\*/)"

and replace the ###INPUT### with what you are searching for.

See this other question about this regex.




回答2:


If the javadoc is in source files that are in your workspace then you can use 'File Search'.



来源:https://stackoverflow.com/questions/689007/search-javadoc-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!