如果该行上有警告标记,如何在 Eclipse 中查看 javadoc 工具提示?

How to view javadoc tooltip in Eclipse, if there's a warning marker on that line?

原始的 javadoc 标记很难阅读,但 Eclipse 有一个方便的功能来呈现您刚刚在工具提示中编写的 javadoc。但是,如果有警告,它会显示警告工具提示。如何解决?

你可以按[F2]

I think the intended behavior is for you to solve the error before writing the javadoc any further. If you want to a quick way to get around it, you can attach the class javadoc by attaching the source in eclipse by:

select Window -> show view -> javadoc (or alt + shift + q, j).

then in the javadoc view, right click -> open attached javadoc (or shift + F2), this will display the javadoc of the class in the internal browser of eclipse.