[英]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.我喜欢使用 Eclipse 的快捷键Ctrl + O ,它概述了当前的源代码。 Is there an equivalent shortcut in IntelliJ IDEA?
IntelliJ IDEA 中是否有等效的快捷方式?
It opens a dialog which allows for quick search of methods and fields in a class.它打开一个对话框,允许快速搜索类中的方法和字段。
我已经多年没有使用 Eclipse,所以我不太熟悉你所追求的行为 - 但我相信Ctrl + F12可能会做你想要的:它是默认映射中文件结构弹出窗口的快捷方式。
Shortcuts:快捷方式:
Above works on IntelliJ versions 14 to 2020 .以上适用于IntelliJ 版本 14 到 2020 。
Windows : ctrl + F12视窗: ctrl + F12
MacOS : cmd + 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.如果要在整个项目中搜索类和方法,请按两次SHIFT 。
On MacOSX 10.8.5, Cmd F12 did not work for me.在 MacOSX 10.8.5 上, Cmd F12对我不起作用。 I had to use Fn Cmd F12
我不得不使用Fn Cmd F12
For Intellij 13 on ubuntu the shortcut for the Structure window is Alt + 7 ( Cmd + 7 on Mac).对于 ubuntu 上的 Intellij 13,结构窗口的快捷方式是Alt + 7 (Mac 上为Cmd + 7 )。 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.
您可以使用右上角的设置图标使窗口浮动以模拟 Eclipse 行为,也可以取消选择固定模式选项以使Esc工作。
Ctrl + F3 in Idea is the equivalent of Ctrl + O in Eclipse. Idea 中的Ctrl + F3相当于 Eclipse 中的Ctrl + O。
The thread is old.线程是旧的。 Just thought might be useful for someone lookin for the same answer...
只是认为可能对寻找相同答案的人有用...
Ctrl + F12或在键盘映射中搜索“文件结构”
Ctrl + F12 works for me. Ctrl + F12对我有用。 I'm using intellij IDEA CE 12 with default keymap.
我正在使用带有默认键盘映射的 Intellij IDEA CE 12。
All these answers are subjective, because they depend on your platform, keymap and IntelliJ version.所有这些答案都是主观的,因为它们取决于您的平台、键盘映射和 IntelliJ 版本。
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.
在 Idea 13 中,视图→工具窗口→结构将打开视图,同时菜单将显示适用于您的设置的键盘快捷键。
对我来说, Ctrl + F12真的很好用!
For some Linux kinds, and particularly for XFCE (like Xubuntu, Mint XFCE) a lot of default XWin keyboard layout mappings are not working .对于某些Linux类型,尤其是XFCE (如 Xubuntu、Mint XFCE),许多默认的 XWin 键盘布局映射不起作用。
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.
对于具体问题Ctrl + F12被分配给工作区 12 ,我怀疑是否有很多人使用它。
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
作为临时解决方法,您可以通过Find action Ctrl + Shift + A使用 IDEA 操作
There are other overlapping short keys.还有其他重叠的快捷键。 References:
参考资料:
If you want a persistent/sticky/docked Tool Window instead of a temporary/transient dialog:如果你想要一个持久/粘性/停靠的工具窗口而不是临时/瞬态对话框:
我认为在这里您可以找到作为 Eclipse 用户的 Idea 最有用的快捷方式...... Eclipse“快速大纲” Ctrl + O (Windows) 是等效的 Idea“文件结构” Ctrl + F12 !
It is possible to use eclipse keymap in intellij by clicking ALT + → keymap.可以通过单击ALT + →键盘映射在 intellij 中使用 Eclipse 键盘映射。 Then select eclipse keymap.
然后选择eclipse键盘映射。
Ctrl + F12有效,因为它用于文件结构弹出窗口,类似于在Eclipse 中显示代码。
As mentioned, I'm using XFCE from windows to remote Ubuntu and CTRL + F12 doesn't work.如前所述,我正在从 Windows 到远程 Ubuntu 使用 XFCE,但CTRL + F12不起作用。 Since no one mentioned recombine, I'd like to share my solution.
由于没有人提到重组,我想分享我的解决方案。
Keymap
Keymap
file structure
in search boxfile structure
Add Keyboard Shortcut
Add Keyboard Shortcut
Now, you can use Ctrl + Shift + o to trigger the file structure.现在,您可以使用 Ctrl + Shift + o来触发文件结构。
For details about keymap rebinding, please refer to this thread .有关键盘映射重新绑定的详细信息,请参阅此线程。
快捷键是: Ctrl + Shift + N用于文件Ctrl + N用于类
Ctrl + Alt + L是您要找的那个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.