Sometimes I just want to know the public interface of a class, but File Structure
( Cmd-F12
) always show all methods(and fields) to me.
Could I filter them by modifiers, such as public, protected or private?
有一个“结构视图”(Alt-7)显示类成员,它有排序选项,因此它将在顶部显示公共方法。
在IntelliJ 2017.1.2中, 结构视图 (Alt-7或Cmd-7)包括一个Show non-public
切换,可用于过滤掉私有(etc)成员。
No. You can only look at "lock icon" :
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.