LCK
LCK

Reputation: 125

IntelliJ IDEA - Show method help/description

I was wondering if there is a way to see the description/help of a method on the list of suggestions like in Eclipse. And going to the class and looking up the help manually isn't an option.

Example in Eclipse:

enter image description here

Upvotes: 10

Views: 12529

Answers (3)

sina72
sina72

Reputation: 5101

If you select an item in the suggestion list and want to see its documentation, press Ctrl+Q (Q = quick information) or Alt+Button3 Click. The popup will be updated automatically if you select another item in the list.

Quick info

Similar you can press Ctrl+Shift+I to see its quick definition, that is its code. Very handy.

For that to work, add the path to the JavaDoc in the project settings. Here I have set it to the online Java 7 documentation:

Doc path

Upvotes: 19

BaiJiFeiLong
BaiJiFeiLong

Reputation: 4665

There should be a bug in Python project.

The Quick Documentation shortcut sometimes work, sometimes do not work.

Try import another module, or remove an exists import, then the shortcut may work again.

So, make sure the shortcut worked in a normal Java project first, or IntelliJ IDEA will waste your much time on it.

Upvotes: 0

Umang Sharma
Umang Sharma

Reputation: 31

Press F1 and IntelliJ will present a popup with detailed information about whatever the current cursor is on. For a method, that will include things like a general description, parameters, and errors thrown. enter image description here

Upvotes: 3

Related Questions