Java 在 Eclipse 中激活项目资源管理器的快捷键

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19130384/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 14:21:44  来源:igfitidea点击:

Shortcut key to activate project explorer in Eclipse

javaeclipse

提问by Aditya

I am unable to find out the shortcut key to activate the project explorer in eclipse. I usually use cmd+F12 key to activate the editor, however i have to rely on mouse to move to a project explorer.

我找不到在 eclipse 中激活项目资源管理器的快捷键。我通常使用 cmd+F12 键来激活编辑器,但是我必须依靠鼠标移动到项目资源管理器。

Is there a shortcut key available for that ? If not can it be configured ?

有快捷键吗?如果不是可以配置吗?

回答by Juned Ahsan

Press Ctrl+Shift+Lto open the Key Assist. All key shortcuts are available in key assist, see what you need is available there or not

按下Ctrl+Shift+L可打开按键辅助。所有快捷键都在按键辅助中可用,看看你需要的东西是否可用

回答by Lokesh

By activate do you mean to open the project? This shortcut is not set by default. Go to Preferences->keys and serach for open project and set shortcut of your choice.

激活是指打开项目吗?默认情况下未设置此快捷方式。转到 Preferences->keys 并搜索打开的项目并设置您选择的快捷方式。

But to apply this shortcut you will have to reach that project. So set a shortcut to reach Project explorer [same way as explained above] , use arrow keys to reach project and then use your open project shortcut. Easiest way use mouse :)

但是要应用此快捷方式,您必须到达该项目。因此,设置一个快捷方式以访问 Project explorer [与上述相同的方式],使用箭头键访问项目,然后使用您打开的项目快捷方式。最简单的方法使用鼠标:)

回答by Aniket Kulkarni

Go to Window --> Preferences --> Click on General --> Keys. You will see

转到窗口 --> 首选项 --> 单击常规 --> 键。你会看见

enter image description here

在此处输入图片说明

Now, below Schemethere is textbox, type project explorer. You will see

现在,在Scheme下方有一个文本框,输入project explorer. 你会看见

enter image description here

在此处输入图片说明

Select Show Viewfrom the grid. In Bindingtype the short key which ever you want. I typed Ctrl+Alt+Shift+Q. Then click on Apply and OK.

从网格中选择显示视图。在绑定中键入您想要的快捷键。我输入了Ctrl+Alt+Shift+Q。然后单击应用和确定。

If you want to assign a short key and that short key exists then you will see in Conflicts:table.

如果您想分配一个快捷键并且该快捷键存在,那么您将在Conflicts:表中看到。

Some useful shortcuts are

一些有用的快捷方式是

  1. 93 shortcuts
  2. more shortcuts
  1. 93个快捷键
  2. 更多快捷方式

回答by Adam

Customise the Show Viewdialog.

自定义Show View对话框。

The Eclipse defaults don't include the Project Explorer view, so you must add that.

Eclipse 默认值不包括 Project Explorer 视图,因此您必须添加它。

From eclipseonetips.com:

来自eclipseonetips.com

The Show View commands are activated by pressing Alt+Shift+Q, then the letter for the relevant view, eg. to navigate to the Package Explorer, press Alt+Shift+Q, P.

显示视图命令通过按Alt+ Shift+激活Q,然后是相关视图的字母,例如。要导航到包资源管理器,请按Alt+ Shift+ QP

So pressing Alt+Shift+Qwill cause the Show Viewdialog to pop up where you can select the view you want with the cursor arrows, the mouse or the P.

因此,按Alt+ Shift+Q将导致Show View弹出对话框,您可以在其中使用光标箭头、鼠标或P.

Follow the instructions given in Aniket Kulkami's answer and add Alt+Shift+Q,Rto the Project Explorer Show View item. Then you will see the option appear in the Show Viewdialog along with the other views it's possible to navigate to, and Rwill select it.

按照 Aniket Kulkami 的回答中给出的说明,将Alt+ Shift+ Q,添加R到 Project Explorer Show View 项。然后您将看到该选项Show View以及它可以导航到的其他视图出现在对话框中,R并将选择它。

It might also make sense for you to remove the Pfrom the Package Explorer view so you can use it for the Project Explorer instead.

您也可以P从 Package Explorer 视图中删除 ,以便您可以将其用于 Project Explorer。

回答by Ahamadullah Saikat

top-right corner of eclipse you will see a [java] button and a [+] button...

在 eclipse 的右上角你会看到一个 [java] 按钮和一个 [+] 按钮...

first right click on [java] button and close it...

首先右键单击 [java] 按钮并关闭它...

now press on [+] button select java[default] and click ok button

现在按 [+] 按钮选择 java[default] 并单击确定按钮