Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse key bindings everywhere

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?

like image 924
gammay Avatar asked Aug 21 '12 11:08

gammay


People also ask

How do I change the shortcut Keys in Eclipse?

Display and Edit the Current Keyboard Shortcuts To see the current key configuration and its keyboard shortcuts, choose the Eclipse > Preferences menu command to open the Eclipse workbench Preferences. Select the General > Editor > Keys page.

What does Ctrl shift t do in Eclipse?

Switching between Open Editors Ctrl + Page Up and Ctrl + Page Down—Navigate to previous or next file from the list of open files. Ctrl + Shift + T—Display a list of classes from the workspace. Ctrl + Shift + R—Display a list of resources from the workspace.


1 Answers

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

like image 109
moeTi Avatar answered Sep 25 '22 11:09

moeTi