Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: Highlight the type of a variable on hover [duplicate]

In Eclipse, if you place the cursor on any variable, a small popup box will appear containing the type (class) of this variable, how can I have the same in IntelliJ?

like image 476
Ali Bassam Avatar asked May 15 '14 09:05

Ali Bassam


2 Answers

By placing cursor on a variable and hitting Ctrl-Q you'll find all the documentation regarding this variable, including type.

like image 106
nikis Avatar answered Oct 04 '22 18:10

nikis


For IntelliJ 15, the "Quick Definition" option worked for me. On Macs pressing Command-Y is exactly what I was looking for.

like image 26
Jeff Avatar answered Oct 04 '22 17:10

Jeff