How to navigate to a Type in IntelliJ? or what is the equivalent to Eclipse's Ctrl + Shift + T?

天大地大妈咪最大 提交于 2020-12-05 07:32:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!