1

Can I just browse available javadocs with IntelliJ?

For example, I configured some library in Maven and it has javadoc available only on Maven repository.

It is lazy to download it by hand, unpack and open it with browser.

Is it possible to do this automatically and browse for some class by name? Without coding it first.

Dims
  • 47,675
  • 117
  • 331
  • 600
  • http://stackoverflow.com/questions/7578423/manage-source-and-javadoc-for-grails-automatic-dependencies-in-intellij-idea?rq=1 – Jordi Castilla Jun 26 '15 at 10:38

1 Answers1

3

The "how to download the documentation" question was answered in your other question. There's really not a way to directly browse the attached Javadocs, but there is a pseudo way to do it.

First I'll mention that in code, you can use the Quick Documentation shortcut (Ctrl+Q or ,J on a Mac) to browse open the documentation for the class/method where your cursor is position. Once the quick documentation window is open, you can click the blue up arrow enter image description here, type Shift+F1 (not sure about the mac) to open the documentation in a browser. If the documentation is in a JAR file, and you have not done so previously, IDEA will offer to extract the Javadocs from the JAR file.

If you want to browse the JavaDoc for a class or method you have not yet used, there is a way to do it. Use the Go To Class action Ctrl+N (,O) or the Go to Symbol (e.g., field, method, etc) Ctrl+Alt+Shift+N (,O) to "search" for the Class of method. (You will like want to hit the shortcut a second time so the "Include non-project classes/symbols" option gets selected.) Once you find it and it is selected in the list, instead of hitting Enter to go to the class or symbol like you normally would, use the Quick Documentation shortcut to view the Javadoc (and then optionally open it externally).

Matthias Braun
  • 32,039
  • 22
  • 142
  • 171
Javaru
  • 30,412
  • 11
  • 93
  • 70
  • When I press UP button or other way invoke `External Documentation` feature, I receive 404 error as described here: http://stackoverflow.com/questions/31071842/error-404-while-looking-maven-downloaded-javadoc-with-external-documentation-in – Dims Jun 26 '15 at 16:52
  • 1
    I added a comment to your other question regarding the 404 error. Please make my answer here as the accepted answer since it is indeed the correct answer to how to open external javadoc (you simply are having an issue with it working for the JUnit 4.11 library on your system). – Javaru Jun 27 '15 at 18:33
  • Thanks a lot! Will accept answer when understand, what is happening :) – Dims Jun 27 '15 at 19:22