简体   繁体   English

Eclipse键盘快捷键冲突。 如何将按键绑定与添加了按键绑定的插件关联?

[英]Eclipse keyboard shortcut conflicts. How to associate a key binding with the plugin that added it?

Just wondering if there is a general way (I don't particularly care how intricate or unnecessarily complicated) to find out which Eclipse plugin added which key binding. 只是想知道是否存在一种通用的方法(我不太在意它的复杂性或不必要的复杂性)来找出哪个Eclipse插件添加了哪个键绑定。 This would be very useful for me because I have shortcut conflicts, and I'd like to make a more informed decision on which binding to unbind. 这对我来说非常有用,因为我有一些捷径冲突,而且我想对要解除绑定的绑定做出更明智的决定。

The Keys dialog (Preferences > General > Keys) does a great job of listing bindings and filtering by actions, but I can't filter or sort by plugin. “键”对话框(“首选项”>“常规”>“键”)在列出绑定和按操作进行过滤方面做得很好,但是我无法按插件进行过滤或排序。 Some entries give hints of their plugin association. 一些条目给出了其插件关联的提示。 For example, Emmet shortcuts list "Emmet" in the category column, and some Aptana bindings do the same. 例如, Emmet快捷方式在类别列中列出了“ Emmet”,并且某些Aptana绑定也执行相同的操作。 However, sometimes the category for a binding simply says "Source" or "Edit" with no other clues to be found. 但是,有时绑定的类别仅显示“源”或“编辑”,而找不到其他线索。 I'd just like to know where these bindings came from. 我只想知道这些绑定的来源。

Thanks! 谢谢!

You could use Eclipse Search / Plug-in Search tab. 您可以使用Eclipse搜索/插件搜索选项卡。 Search for org.eclipse.ui.bindings with Extension Point selected in Search For and Scope set to Workspace . 搜索org.eclipse.ui.bindings其中在“ Search For Scope选择了“ Extension Point ,并将“ Scope设置为“ Workspace This should show you all plug-in that declare key bindings. 这应该显示所有声明键绑定的插件。 Double clicking on an entry in the search results will open the plugin.xml at the extension point declaring the binding. 双击搜索结果中的条目将在扩展点打开plugin.xml ,以声明绑定。

Note: The search uses your Target Platform if you have one defined - if this is not Eclipse it won't find what your want. 注意:如果定义了Target Platform则搜索将使用Target Platform -如果不是Eclipse,则找不到所需的Target Platform You can always use an empty workspace without a target platform to do the search. 您始终可以使用没有目标平台的空工作区来进行搜索。

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

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