Does IntelliJ have the equivalent of the Eclipse “

2019-02-04 09:02发布

问题:

By this I mean the feature where you can click on a class and the methods are displayed in alphabetical order. At the moment it doesn't seem to drill down any further than class name.

回答1:

Or just tell IntelliJ to "Show Members" in Project View. You select it in the upper right by clicking on the gear icon.



回答2:

what you are looking for is Structure View. It can be found on the left side below the Package View vertical button.

It can also be found under the Window -> Tool Window menu item.

  • Windows it is the keyboard shortcut ALT 7.

  • macOS it is the keyboard shortcut CMD 7.

  • Linux it is the keyboard shortcut CTRL 7.



回答3:

See view->File structure popup or press ctrl-f12 if you haven't changed the keymap.

It also has call hierarchy (ctrl shift f12 on a method declaration) which is very useful..



回答4:

On Mac OS X El Capitan and IntelliJ 17, this command will show Method view: +F12