ChatGPT解决这个技术问题 Extra ChatGPT

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

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?

Just realized this is a dup: stackoverflow.com/questions/1945213/…
You can also have the exact same keymap with Eclipce in IntelliJ.
If you are used to Eclipse, you can directly use the eclipse shortcuts : press Ctrl + Shift + A , Search Keymap and select Eclipse. All IntelliJ shortcuts will be transformed to Eclipse shortcuts. Now do a Ctrl + O :)

P
Paul Verest

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.


Very nice, I'm looking for a pop-up that searches throughout the whole project (like Ctrl+Alt+M in Eclipse) and not just current file (like Ctrl+O in Eclipse), any ideas ?
Go To | Symbol... is most likely what you are looking for.
On Mac OS X, IntelliJ v12 this is now Cmnd+F12
Cmd + 7 on Mac will also show methods pane permanently. Cmd + 7 again will toggle it off.
This action has been moved to Navigate | File Structure.
P
Paul Verest

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


Never knew about this until today. Thank you. Now I don't have to wonder where F12 is on my mac keyboard.
h
hopper

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


P
Pipo

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

Ctrl + 0


This brought a Select methods to Override window for me in Ubuntu 19.10.
v
vinicius.hisao

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


U
Unstoppa博

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


R
Rifqi

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.


J
Jonas Czech

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.


I like your approach :)
I really don't understand the negatives. My method is the only one who works on every IntelliJ version, computer or customization. Think about that
@Telcontar: I guess that people gave you the downvotes because the original question was "What is the equivalent shortcut for that in IntelliJ" where that was described quite precisely :) Your "answer" is rather a comment.
I don't understand why there are so many down votes. "this." is a good alternative. I do that often. I was also an Eclipse user before moving to intellij and I did the same on Eclipse too.
S
Saleh Enam Shohag

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.

M
MedMahmoud

Ashkan Kh. Nazary you can use

Ctrl+N or Ctrl+Shift+N

source IntelliJIDEA_ReferenceCard