-->

eclipse key bindings everywhere

2020-08-09 11:27发布

问题:

I want to assign an eclipse key shortcut. Say, Ctrl+Shift+F = "File Search".

I can assign this in Window -> Preferences -> General -> Keys -> File Search -> Binding: Ctrl+Shift+F

I also need to select "When". I can select one of "Editing Java Source", "Editing Java Script Source" etc.

Is it possible to assign this key shortcut to be effective everywhere? What I mean is I can be doing anything in eclipse - editing Java, js, xml, etc or I could be in Console window looking at the logs. I will highlight a word I want to search and press Ctrl+Shift+F and eclipse just has to bring up the "File Search" dialog.

How can we do this without have to assign the binding to every item in the "When" drop-down list?

回答1:

Try setting "When" to "In Windows". I just checked, and the key binding worked everywhere I tested it...