457

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

What is the equivalent shortcut for that in IntelliJ?

Cohensius
  • 385
  • 7
  • 18
Glide
  • 20,235
  • 26
  • 86
  • 135
  • 7
    Just realized this is a dup: http://stackoverflow.com/questions/1945213/what-is-eclipses-ctrlo-shortcut-equivalent-in-intellij-idea – Glide Oct 21 '10 at 18:37
  • You can also have the exact same keymap with Eclipce in IntelliJ. – Koray Tugay Sep 09 '13 at 16:45
  • 6
    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 :) – Abhishek Bedi Dec 21 '15 at 05:09
  • 1
    Possible duplicate of [What is Eclipse's Ctrl+O (Show Outline) shortcut equivalent in IntelliJ IDEA?](https://stackoverflow.com/questions/1945213/what-is-eclipses-ctrlo-show-outline-shortcut-equivalent-in-intellij-idea) – Chaoz Sep 24 '17 at 13:34

10 Answers10

723

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.

Paul Verest
  • 60,022
  • 51
  • 208
  • 332
CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
117

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

Paul Verest
  • 60,022
  • 51
  • 208
  • 332
wryan
  • 1,371
  • 1
  • 9
  • 4
  • 2
    Never knew about this until today. Thank you. Now I don't have to wonder where F12 is on my mac keyboard. – Nopiforyou May 26 '22 at 18:53
26

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

hopper
  • 13,060
  • 7
  • 49
  • 53
9

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

Ctrl + 0 (zero)

Pipo
  • 4,653
  • 38
  • 47
4

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

3

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

2

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.

Rifqi
  • 53
  • 7
1

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.

Jonas Czech
  • 12,018
  • 6
  • 44
  • 65
Telcontar
  • 4,794
  • 7
  • 31
  • 39
  • 3
    I like your approach :) – Stefan Michev Mar 12 '16 at 12:34
  • 7
    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 May 26 '16 at 10:58
  • 2
    @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. – Honza Zidek Feb 15 '17 at 12:16
  • 3
    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. – Harish Mar 25 '19 at 18:35
0

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.
Saleh Enam Shohag
  • 1,039
  • 1
  • 12
  • 23
-3

Ashkan Kh. Nazary you can use

Ctrl+N or Ctrl+Shift+N

source IntelliJIDEA_ReferenceCard

MedMahmoud
  • 117
  • 1
  • 2
  • 15