How to view package class type and parameters in IntelliJ?

When I hover over a class or variable, why don't I see any information about the type of the class?

Is this not a feature in IntelliJ?

For example, in vs .net, if I am on any variable or class, it pops up and tells me which namespace belongs, etc.

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

It should be an IntelliJ function, I just don't know how to get it.

Can anyone clarify this?

Also, how can I remove page formatting?

+6
source share
2 answers

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

Hover over information. You can get information using Ctrl-Q (Quick Help) in Windows or F1 in OS X, which will show where it comes from and what it is, most of the materials in the pop-up window are connected in a reasonable way.

This popup view can also be pinned and / or pinned; I often docked it at the bottom.

+2
source

This does not work yet, but star / vote the issue .

You need to use keyboard shortcuts for tooltips for quick documentation or ( Ctrl + Q and Ctrl + P with the default key combination of Windows, F1 and Cmd + P with the default layout for OS X 10.5+).

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

+4
source

Source: https://habr.com/ru/post/902598/


All Articles