问题
In Eclipse, the "Open Type" dialog (Ctrl + Shift + T) allows you to open any type, including those that are in jar dependencies. What's the equivalent for Intellij IDEA?
回答1:
CTRL+N is the shortcut you're looking for.
After you hit it, dialog will be shown where you can search through project types, hit that shortcut again and it will include non-project types (dependencies). There is also checkbox for that in the dialog.
The documentation, which includes some tips and tricks for this feature is available here.
Other alternative is the search everywhere dialog (SHIFT+SHIFT). You can search through classes, commands, and a lot of other stuff in this dialog.
回答2:
The shortcut is: CTRL+N (similar to Eclipse CTRL+SHIFT+T)
For just any file it is: CTRL+SHIFT+N (similar to Eclipse CTRL+SHIFT+R)
回答3:
Ctrl+N , the action is to navigate/go to class
回答4:
Command
-O
(Navigate > Class from the menu) on Mac.
来源:https://stackoverflow.com/questions/27159372/how-to-navigate-to-a-type-in-intellij-or-what-is-the-equivalent-to-eclipses-ct