本文翻译自:What is the shortcut in IntelliJ IDEA to find method / functions?
I know that Ctrl + N is to find classes and it is very useful. 我知道Ctrl + N是查找类,它非常有用。 But what about methods? 但是方法怎么样?
#1楼
参考:https://stackoom.com/question/Fkfl/IntelliJ-IDEA中查找方法-函数的快捷方式是什么
#2楼
ctrl + F12 ( cmd + F12 on macOS) will show all members of the current class in a popup windown and let you pick up one. ctrl + F12 (macOS上的cmd + F12 )将在弹出窗口中显示当前类的所有成员,并让您选择一个。 It works exactly like the ctrl + o shortcut in eclipse, much faster than ctrl + alt + shift + n 它的工作方式与eclipse中的ctrl + o快捷方式完全相同,比ctrl + alt + shift + n快得多
#3楼
IntelliJ IDEA Version 12.13 Ultimate Edition: IntelliJ IDEA版本12.13终极版:
Macs: command + option + shift + N or on Menu -> Navigate > Symbol ... Macs: 命令 + 选项 + shift + N或菜单 - >导航>符号...
#4楼
Slightly beside the actual question, but nonetheless useful: The Help menu of Intellij has an option 'Default Keymap reference', which opens a PDF with the complete mapping. 稍微偏离实际问题,但仍然有用:Intellij的帮助菜单有一个选项'Default Keymap reference',它打开一个带有完整映射的PDF。 ( Ctrl + F12 is mentioned there) (那里提到了Ctrl + F12 )
#5楼
Android Studio on Mac Mac上的Android Studio
Command + Option + O Command + Option + O.
Opens up the Symbol lookup that you can jump to most of the methods/functions in your currently opened document. 打开符号查找,您可以跳转到当前打开的文档中的大多数方法/功能。
#6楼
按SHIFT两次,您可以搜索项目中的任何类和方法。