IntelliJ shortcut to show a popup of methods in a class that can be searched

天大地大妈咪最大 提交于 2019-11-27 04:56:18

问题


I'm switching over from Eclipse to IntelliJ. In Eclipse, if you do Ctrl+O in the editor, it will show a hover popup that allows you to search for a method in the class you're editing.

What is the equivalent shortcut for that in IntelliJ?


回答1:


Use Navigate (View in older versions) | File Structure Popup (Ctrl+F12 on Windows, +F12 on OS X). Start typing method/symbol name to either narrow down the list or highlight the desired element. Press Enter to navigate to the selected element.




回答2:


I prefer to use the Structure view. To open it, use the menu: View/Tools Window/Structure. The hotkey on Windows is Alt+7




回答3:


Do Cmd+F12+Fn Key on mac in IntelliJ if clicking Cmd+F12 starts.




回答4:


If you are running on Linux (I tested in Ubuntu 10.04), the shortcut is Ctrl + F12 (same of Windows)




回答5:


command+fn+F12 is correct. Lacking of button fn the F12 is used adjust the volume.




回答6:


On linux distributions (@least on Debian with plasma) the default shortcut is

Ctrl + 0




回答7:


For Mac Users if command + fn + f12 or command + f12 is not working, then your key map is not selected as "Mac Os X". To select key map follow the below steps.

Android Studio -> Preferences -> Keymap -> From the drop down Select "Mac OS X" -> Click Apply -> OK.



回答8:


By default, most of distribution uses Ctrl+F12.

Some OS distribution (in my case Xubuntu) which uses Xcfe, overrides Ctrl+F12 to "Workspace 12" switch.




回答9:


Ashkan Kh. Nazary you can use

Ctrl+N or Ctrl+Shift+N

source IntelliJIDEA_ReferenceCard




回答10:


You can type "this." and wait a second, a popup with methods and properties will display.

Not a shortcut, but it works for me.

PS: if you are in a static method, type the class name.



来源:https://stackoverflow.com/questions/3990289/intellij-shortcut-to-show-a-popup-of-methods-in-a-class-that-can-be-searched

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