简体   繁体   English

IntelliJ IDEA 中 Eclipse 的 Ctrl+O(显示大纲)快捷键是什么?

[英]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:快捷方式:

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

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, ViewTool WindowsStructure will open the view, and along the way, the menu will show you the applicable keyboard shortcut for your setup.在 Idea 13 中,视图工具窗口结构将打开视图,同时菜单将显示适用于您的设置的键盘快捷键。

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

Ctrl + F12 mimics the same functionality. Ctrl + F12模仿相同的功能。
You can also use this link which gives Eclipse and corresponding IntelliJ IDEA shortcuts.您还可以使用此链接提供Eclipse和相应的IntelliJ IDEA快捷方式。

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:如果你想要一个持久/粘性/停靠的工具窗口而不是临时/瞬态对话框:

  • Mac : + 7 Mac : + 7

我认为在这里您可以找到作为 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.由于没有人提到重组,我想分享我的解决方案。

  • Ctrl + Alt + s ` to open settings. Ctrl + Alt + s ` 打开设置。
  • Click Keymap单击Keymap
  • Input file structure in search box在搜索框中输入file structure
  • Right click the item and click Add Keyboard Shortcut右键单击该项目,然后单击Add Keyboard Shortcut
  • Press keyboard combination you like and I used Ctrl + Shift + o since I came from Eclipse world.按下你喜欢的键盘组合,我使用了 Ctrl + Shift + o,因为我来自 Eclipse 世界。 The Ctrl + o has been bound already, so I used Ctrl + Shift + o instead Ctrl + o已经被绑定了,所以我用Ctrl + Shift + o代替

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.

相关问题 在Netbeans中Eclipse的Ctrl + O快捷方式是什么? - What is Eclipse's Ctrl+O shortcut equivalent in Netbeans? 在IntelliJ IDEA中Eclipse的Ctrl + H快捷方式是什么 - What is Eclipse's Ctrl+H shortcut equivalent in IntelliJ IDEA Eclipse Kepler Java显示继承的成员(Ctrl + O两次)损坏了,也许是由于更新了吗? - Eclipse Kepler Java show inherited Members (Ctrl+O twice) broken, perhaps due to updates? Intellij IDEA:相当于Eclipse的“完整当前声明”(Ctrl + Shift + Enter)? - Intellij IDEA: equivalent of Eclipse's “Complete Current Statement” (Ctrl+Shift+Enter)? 如何导航到 IntelliJ 中的类型? 或者什么相当于 Eclipse 的 Ctrl + Shift + T? - How to navigate to a Type in IntelliJ? or what is the equivalent to Eclipse's Ctrl + Shift + T? MyEclipse中** intelliJ **想法的`Ctrl + D`快捷方式 - `Ctrl+D` shortcut of **intelliJ** idea in MyEclipse Eclipse中IntelliJ IDEA的“启动前:”运行/调试配置功能等同于什么? - What's the equivalent of IntelliJ IDEA's Run/Debug Configurations “Before launch:” feature in Eclipse? IntelliJ IDEA是否具有“Ctrl”+“K”,“Ctrl”+“D”等效? - Does IntelliJ IDEA have a `Ctrl` + `K`, `Ctrl` + `D` equivalent? Eclipse 组织导入快捷方式 (Ctrl+Shift+O) 不起作用 - Eclipse Organize Imports Shortcut (Ctrl+Shift+O) is not working 任何方式(或快捷方式)自动导入 IntelliJ IDEA 中的类,如 Eclipse? - Any way (or shortcut) to auto import the classes in IntelliJ IDEA like in Eclipse?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM