300

I like to use Eclipse's shortcut Ctrl + O which outlines the current source. Is there an equivalent shortcut in IntelliJ IDEA?

It opens a dialog which allows for quick search of methods and fields in a class.

Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148
  • 1
    It would aid web searchers a lot if you included a description of the functionality you're after in this question's title. Eclipse's keyboard shortcuts are platform- and setup-dependent. – Michael Scheper Mar 26 '14 at 02:43

19 Answers19

362

I haven't used Eclipse for years, so I'm not that familiar with the behaviour you're after - but I believe Ctrl + F12 may do what you want: it is the shortcut for the File structure Popup in the default mapping.

For macOS fn + cmd + F12

Paul Verest
  • 60,022
  • 51
  • 208
  • 332
Andrzej Doyle
  • 102,507
  • 33
  • 189
  • 228
  • 5
    See for more shortcuts. At StackOverflow : What are the most useful Intellij IDEA keyboard shortcuts? AT http://stackoverflow.com/questions/294167/what-are-the-most-useful-intellij-idea-keyboard-shortcuts – Rites Dec 22 '09 at 09:40
  • 14
    For the record, `Ctrl-F12` is bound to the *File Structure* command, available in the top-level *Navigate* menu. – seh Jan 06 '12 at 15:12
  • 9
    cmd + fn + F12 for OS X – Willie Z Jan 18 '17 at 21:18
  • @loeschg what if cmd + f12 is overridden by the system's volume up? – Lucian Apr 07 '17 at 23:36
  • 1
    @LucianNut then you'll probably want cmd + fn + F12 like willy_z suggested. – loeschg Apr 10 '17 at 15:44
  • 1
    CMD + 7 on Mac will show the structure (functions) pane. The same command will toggle it off. – Jorge Tovar Dec 09 '21 at 20:24
41

Shortcuts:

  • Mac: ⌘+F12
  • Windows: Ctrl+F12
  • Ubuntu/CentOS: Ctrl+F12
Manu Manjunath
  • 6,201
  • 3
  • 32
  • 31
16

Windows : ctrl + F12

MacOS : cmd + F12

Above commands will show the functions/methods in the current class.

Press SHIFT TWO times if you want to search both class and method in the whole project.

Vikas Gupta
  • 10,779
  • 4
  • 35
  • 42
11

For Intellij 13 on ubuntu the shortcut for the Structure window is Alt+7 (Cmd+7 on Mac). You can make the window floating to simulate the Eclipse behavior using the top-right setting icon, also unselect the pinned mode option for Esc to work.

Joshua Goldberg
  • 5,059
  • 2
  • 34
  • 39
vikasing
  • 11,562
  • 3
  • 25
  • 25
11

On MacOSX 10.8.5, CmdF12 did not work for me. I had to use FnCmdF12

udondan
  • 57,263
  • 20
  • 190
  • 175
daazakali
  • 315
  • 2
  • 8
  • 4
    depends upon the preferences you have set for your mac machine – nikoo28 Jun 17 '15 at 09:57
  • Is the Fn necesssary to reveal the F1-12 keys on your macbook pro with touchbar? You can configured that in the Keyboard System Preferences i.e. always show F keys on the touchbar when in Intellij – davidfrancis Dec 11 '17 at 11:25
10

Ctrl + F3 in Idea is the equivalent of Ctrl + O in Eclipse.

The thread is old. Just thought might be useful for someone lookin for the same answer...

Jasper
  • 2,166
  • 4
  • 30
  • 50
Karthikkannan
  • 156
  • 1
  • 4
  • 22
    Ctrl-F3 is correct IF you're using the Eclipse keymap in IntelliJ IDEA. If you're using the default IntelliJ keymap, it's Ctrl-F12. At least in IDEA 10. – overthink Dec 21 '10 at 15:02
  • In what I believe is a default keymap, Ctrl+F3 is "Find word at caret". – Andrzej Doyle May 29 '12 at 16:13
9

Ctrl + F12 or search "File Structure" in keymap

Alan
  • 1,691
  • 1
  • 16
  • 13
8

Ctrl + F12 works for me. I'm using intellij IDEA CE 12 with default keymap.

Liang Zhou
  • 2,055
  • 19
  • 20
4

All these answers are subjective, because they depend on your platform, keymap and IntelliJ version.

I believe the 'Structure' tool is what you're looking for. In Idea 13, View → Tool Windows → Structure will open the view, and along the way, the menu will show you the applicable keyboard shortcut for your setup.

Michael Scheper
  • 6,514
  • 7
  • 63
  • 76
4

For me, Ctrl + F12 Works really well!

NIMISHAN
  • 1,265
  • 4
  • 20
  • 29
3

Ctrl+F12 mimics the same functionality.
You can also use this link which gives Eclipse and corresponding IntelliJ IDEA shortcuts.

Fabrizio
  • 7,603
  • 6
  • 44
  • 104
gourav
  • 29
  • 3
3

For some Linux kinds, and particularly for XFCE (like Xubuntu, Mint XFCE) a lot of default XWin keyboard layout mappings are not working.

This is because they overlap with assigned Window Manager -> Keyboard shortcuts. For the concrete question Ctrl+F12 is assigned to Workspace 12 which I doubt that many use at all.

The solution is to clear those Window manager assignments in Window Manager -> Keyboard tab. As a temporal workaround you may use IDEA actions via Find action Ctrl+Shift+A

There are other overlapping short keys. References:

Svilen
  • 431
  • 4
  • 6
3

If you want a persistent/sticky/docked Tool Window instead of a temporary/transient dialog:

  • Mac: ⌘+7
cellepo
  • 4,001
  • 2
  • 38
  • 57
2

I think here you can found out the most useful shortcuts for Idea as an Eclipse user... Eclipse "Quick outline" Ctrl+O (Windows) is an equivalent Idea "File Structure" Ctrl+F12!

Fabrizio
  • 7,603
  • 6
  • 44
  • 104
IVBORA
  • 33
  • 5
  • 1
    Link only answers are not useful as they don't guarantee a future user can find the answer. Please include a summary of the information in your answer. – Luke Apr 24 '17 at 10:58
  • You are right, I didn't think about that... just include some info. – IVBORA Apr 24 '17 at 12:38
2

It is possible to use eclipse keymap in intellij by clicking ALT+ → keymap. Then select eclipse keymap.

Mwiza
  • 7,780
  • 3
  • 46
  • 42
dvk317960
  • 672
  • 5
  • 10
1

Ctrl+F12 works, because it is for file structure popup, which is similar to showing code in Eclipse.

Fabrizio
  • 7,603
  • 6
  • 44
  • 104
NIMISHAN
  • 1,265
  • 4
  • 20
  • 29
1

As mentioned, I'm using XFCE from windows to remote Ubuntu and CTRL + F12 doesn't work. Since no one mentioned recombine, I'd like to share my solution.

  • Ctrl + Alt + s` to open settings.
  • Click Keymap
  • Input file structure in search box
  • Right click the item and click Add Keyboard Shortcut
  • Press keyboard combination you like and I used Ctrl + Shift + o since I came from Eclipse world. The Ctrl + o has been bound already, so I used Ctrl + Shift + o instead

Now, you can use Ctrl + Shift + o to trigger the file structure.

For details about keymap rebinding, please refer to this thread.

Misha Akopov
  • 12,241
  • 27
  • 68
  • 82
Eugene
  • 10,627
  • 5
  • 49
  • 67
-3

The shortcuts are: Ctrl+Shift+N for files Ctrl+N for classes

donfuxx
  • 11,277
  • 6
  • 44
  • 76
user3495241
  • 81
  • 1
  • 4
-8

Ctrl + Alt + L is the one you're looking for.

Jasper
  • 2,166
  • 4
  • 30
  • 50