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

ぐ巨炮叔叔 提交于 2019-11-26 18:44:31

问题


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.


回答1:


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.




回答2:


Shortcuts:

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

Above works on IntelliJ 14, 15, 2016, 2017 and 2018.




回答3:


Press SHIFT TWO times and you can search anything, both class and method in the whole project.




回答4:


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




回答5:


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




回答6:


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.




回答7:


Ctrl + F12 or search "File Structure" in keymap




回答8:


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




回答9:


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.




回答10:


For me, Ctrl + F12 Works really well!




回答11:


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




回答12:


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!




回答13:


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




回答14:


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




回答15:


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:

  • Difference between Default and Default XWin keymaps
  • Avoid shortcut conflicts in Linux keymap
  • File structure on CTRL+F12 dissapeared in 13.1.5



回答16:


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




回答17:


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



来源:https://stackoverflow.com/questions/1945213/what-is-eclipses-ctrlo-show-outline-shortcut-equivalent-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!