What is Eclipse's Ctrl+O (Show Outline) shortcut equivalent in IntelliJ IDEA?

Viewed 73950

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.

19 Answers

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

For me, Ctrl + F12 Works really well!

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:

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

  • Mac: ⌘+7

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.

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

Related