Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search JavaDoc in Eclipse

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

like image 338
Tobias Avatar asked Mar 27 '09 09:03

Tobias


1 Answers

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.

like image 64
bruno conde Avatar answered Sep 28 '22 05:09

bruno conde



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!