Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view class package type and parameters in IntelliJ?

When hovering your mouse over a Class or variable, how come I don't see any information on the type of the class?

Is this not a feature in IntelliJ?

For example, in vs.net, if I mouse over any variable or class it will popup and tell me what namespace that belongs to etc.

And when I am using a method of a class, it also tells me the different overloads for the method (like types for each parameter, and a list of all the overloads).

This must be a feature in IntelliJ, I just don't know how to get it.

Can someone please clear this up?

Also, how can I tidy up the formatting of a page?

like image 566
codecompleting Avatar asked Nov 28 '11 21:11

codecompleting


2 Answers

It doesn't work on hover yet, please star/vote the issue.

You need to use keyboard shortcuts for quick documentation pop-up or parameter info pop-up (Ctrl+Q and Ctrl+P with default Windows keymap, F1 and Cmd+P with default OS X 10.5+ keymap).

Code | Reformat Code... is the answer to your second question.

like image 122
CrazyCoder Avatar answered Oct 28 '22 20:10

CrazyCoder


Formatting: Code -> Reformat (shortcut: Ctrl-Alt-L)

Hover doesn't produce the kind of information I'd like either. You can get info with Ctrl-Q ("Quick Help") in Windows or F1 in OS X, which will show where it's from and what it is, with most stuff in the popup window linked up in a reasonable way.

That popup view can also be pinned and/or docked; I often have it docked on the bottom.

like image 29
Dave Newton Avatar answered Oct 28 '22 20:10

Dave Newton