简体   繁体   English

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

[英]Shortcut key to activate project explorer in Eclipse

I am unable to find out the shortcut key to activate the project explorer in eclipse.我找不到在eclipse 中激活项目资源管理器的快捷键。 I usually use cmd+F12 key to activate the editor, however i have to rely on mouse to move to a project explorer.我通常使用 cmd+F12 键来激活编辑器,但是我必须依靠鼠标才能移动到项目浏览器。

Is there a shortcut key available for that?有快捷键吗? If not can it be configured?如果没有可以配置吗?

Go to Window --> Preferences --> Click on General --> Keys . 转到窗口 - >首选项 - >单击常规 - >键 You will see 你会看见

在此输入图像描述

Now, below Scheme there is textbox, type project explorer . 现在,在Scheme下面有textbox,类型为project explorer You will see 你会看见

在此输入图像描述

Select Show View from the grid. 从网格中选择“ 显示视图 ”。 In Binding type the short key which ever you want. Binding中键入您想要的短键。 I typed Ctrl+Alt+Shift+Q . 我输入了Ctrl + Alt + Shift + Q. Then click on Apply and OK. 然后单击“应用”和“确定”。

If you want to assign a short key and that short key exists then you will see in Conflicts: table. 如果要分配短键并且存在该短键,则可以在“ 冲突:表”中看到。

Some useful shortcuts are 一些有用的快捷方式是

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

Press Ctrl+Shift+L to open the Key Assist. Ctrl+Shift+L打开键辅助。 All key shortcuts are available in key assist, see what you need is available there or not 所有关键快捷键均可在关键辅助中使用,查看您需要的是否可用

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. 转到首选项 - >键并搜索打开的项目并设置您选择的快捷方式。

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. 因此,设置一个快捷方式来访问Project explorer [与上面说明的相同],使用箭头键到达项目,然后使用打开的项目快捷方式。 Easiest way use mouse :) 最简单的方法使用鼠标:)

Customise the Show View dialog. 自定义“ 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. Alt + Shift + Q激活显示视图命令,然后按相关视图的字母激活,例如。 to navigate to the Package Explorer, press Alt + Shift + Q , P . 要导航到Package Explorer,请按Alt + Shift + QP

So pressing Alt + Shift + Q will cause the Show View dialog 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 , R to the Project Explorer Show View item. 按照Aniket Kulkami的回答中的说明,将Alt + Shift + QR到Project Explorer Show View项目中。 Then you will see the option appear in the Show View dialog along with the other views it's possible to navigate to, and R will select it. 然后,您将看到“ Show View对话框中Show View的选项以及可以导航到的其他视图, R将选择它。

It might also make sense for you to remove the P from the Package Explorer view so you can use it for the Project Explorer instead. 从Package Explorer视图中删除P也可能是有意义的,因此您可以将它用于Project Explorer。

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 [默认],然后单击确定按钮

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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