Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse pop-up javadoc

Is there a way for Eclipse that will pop-up the javadoc related to the code when I press, say, Ctrl + Shift + Space, as NetBeans does ? I don't like it to open attached javadoc in external or internal web browser.

like image 880
NotCamelCase Avatar asked Jan 28 '12 17:01

NotCamelCase


People also ask

How do I show javadoc in Eclipse?

To see the javadoc of a class having attached source in eclipse: 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.

How do I enable javadoc?

From the main menu, select Tools | Generate JavaDoc. In the dialog that opens, select a scope — a set of files or directories for which you want to generate the reference, and set the output directory where the generated documentation will be placed.

How do I write javadoc comments in Eclipse?

Shift-Alt-J is a useful keyboard shortcut in Eclipse for creating Javadoc comment templates.

How do I view javadoc in browser?

Select the desired package, class or method name, right-click and select Show Javadoc. This will launch your default web browser and navigate to the Javadoc for the selected item.


2 Answers

You can use F2 shortcut to show tooltip/javadoc description for the element at the cursor.

like image 159
tenorsax Avatar answered Oct 04 '22 05:10

tenorsax


It happens in eclipse when your mouse is over the interesting element. Additionally you can open javadoc view, so the javadoc will appear into this view. It is even more convenient especially if the description is long and cannot be viewed without scrolling.

like image 38
AlexR Avatar answered Oct 04 '22 04:10

AlexR