loyalflow
loyalflow

Reputation: 14879

How to get the return type of a method call in IntelliJ?

Normally you would expect just hovering over a method it would show a popup of the return type.

How do you get this information in intellij ultimate?

Upvotes: 31

Views: 16793

Answers (6)

Ahmet
Ahmet

Reputation: 11

Ctrl+Shift+P works great with extra bonus by highlighting relevant return expression (IntelliJ 2020.2.3 CE)

Upvotes: 1

Hot key for that: Ctrl + Shift + P Toolbar: "View->Type Info"

Upvotes: 0

Rancho
Rancho

Reputation: 1006

In intellij, Go to Help > Productivity Guide you will find a list of useful shortcuts to increase productivity

Regarding, this question in mac Press option+command+V to get the list of names that you can choose enter image description here

Ctrl+ J in mac for getting the documentation

Find screenshots for ease:-

Upvotes: 1

Denys Titarenko
Denys Titarenko

Reputation: 61

Try Ctrl + Space for quick definition
Also Ctrl + Shift + P may help

Upvotes: 6

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 340733

Hit Ctrl + Q (or ⌃J on Mac) when cursor is on a method declaration or call. It will show you the pop-up you want. As a bonus: Ctrl + Shift + I will display method body as well in a pop-up.

Upvotes: 39

ScottShamus
ScottShamus

Reputation: 415

You hover it and hold down CTRL in windows or CMD in Mac

Upvotes: 38

Related Questions