How to view class file structure in IntelliJ without opening the actual class file?

After 15 years on Eclipse, I am slowing down the transition to IntelliJ 2017 and trying to find equivalent ways to work. In Eclipse, I can press "F4" on any member of my current class and see the structure of the selected element (including all its member and methods) in the "Hierarchy" view.

In IntelliJ, I found a view of the "Alt-7" structure, but this only shows me the structure of the open class in the editor. Is there a way to see the structure of the selected / selected element (including its private / public elements and methods)?

For instance:

public class CustomProvider implements AuthenticationProvider {

    @Autowired
    private TokenStore tokenStore;

    @Override
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {

        Map<String, String> map = new HashMap<>();
        ....
        ....

    }
}

Eclipse TokenStore HashMap, F4 TokenStore ( HashMap), - CustomProvider.

, IntelliJ (.. TokenStore) ( /) ? (Alt-7) TokenStore CustomProvider.

+4
1

, . .

+1

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


All Articles