简体   繁体   中英

In Eclipse, is there a view that shows members of the currently selected element

When I have an interface or class open in the editor, I can see all the members in the outline. The "Javadoc" view shows the docs of the element currently selected - whatever I click on.

I want a combination of these views. I want to see all members of the currently selected element. I know I can see them if I declare a variable and bring up the content assist. But that is too cumbersome. I want to click on an element, see its vivible methods and attributes in a view without loading the file into the main editor window.

Can it be done?

You can use Ctrl + F3 to open a popup with the outline of the current element, with focus in a search field. I think it's the most useful. Skike Ctrl + F3 to get also inherited members in the same popup.

You can also use F4 to quickly open a the type hierarchy view on the selected element. This view contains the subtype and/or supertype hierarchy of the element, and also the members/methods of the element (and its parents with the button 'show all inherited members').

You can expand the element in Package explore and see all the methods and variables declared 在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM