简体   繁体   中英

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

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.

我已经多年没有使用 Eclipse,所以我不太熟悉你所追求的行为 - 但我相信Ctrl + F12可能会做你想要的:它是默认映射中文件结构弹出窗口的快捷方式。

Shortcuts:

  • Mac: + F12
  • Windows: Ctrl + F12
  • Ubuntu/CentOS: Ctrl + F12

Above works on IntelliJ versions 14 to 2020 .

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.

On MacOSX 10.8.5, Cmd F12 did not work for me. I had to use Fn Cmd F12

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.

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...

Ctrl + F12或在键盘映射中搜索“文件结构”

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

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, ViewTool WindowsStructure will open the view, and along the way, the menu will show you the applicable keyboard shortcut for your setup.

对我来说, Ctrl + F12真的很好用!

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

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

我认为在这里您可以找到作为 Eclipse 用户的 Idea 最有用的快捷方式...... Eclipse“快速大纲” Ctrl + O (Windows) 是等效的 Idea“文件结构” Ctrl + F12

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

Ctrl + F12有效,因为它用于文件结构弹出窗口,类似于在Eclipse 中显示代码。

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 + Shift + N用于文件Ctrl + N用于类

Ctrl + Alt + L是您要找的那个。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM