ripper234
ripper234

Reputation: 230048

How do I "Show Documentation" in Eclipse?

I'm looking for the equivalent to CTRL-Q of IntelliJ, that shows you the documentation for the current code.

Upvotes: 18

Views: 10536

Answers (2)

Pascal MARTIN
Pascal MARTIN

Reputation: 401022

I've never used IntelliJ, so not sure it's an exact equivalent, but when I press F2 in Eclipse, I have a popup that displays some help.


For example, here, I pressed F2 as my pointer was on Log :


(source: pascal-martin.fr)

Upvotes: 25

Cecilya
Cecilya

Reputation: 527

To see the attached Javadoc of a class, you can open the Javadoc view in another panel by pressing Alt + Shift + Q, J (as described in this answer). Alternatively, select "Window -> Show View -> Other -> Java -> Javadoc". The view will be updated with the selection in the code editor and will show the Javadoc for the method, class or even field at the cursor position.

I don't know if there is anything similar for other languages though.

Upvotes: 2

Related Questions