Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set 'File Search' as the default dialog when pressing CTRL + H in Eclipse or STS?

Tags:

The Search mode seems to be selected to other but 'File Search', depending on the active perpective (debug/Java), when I press CTRL+H keyboard shortcut in Eclipse/STS, which forces me to, point to 'File Search', using my mouse etc, instead of letting me paste my search pattern right away from the clipboard.

Since 'File Search' mode, is the one that I use most, is there a way of auto selecting 'File Search' instead of 'Remote Search', 'Plug-in Search', etc., when I press CTRL + H in Eclipse/STS?

like image 924
Gerardo Costilla Avatar asked Jan 06 '14 19:01

Gerardo Costilla


1 Answers

Yes there is a way.

Go to Window->Preferences type keys in the top left search box then you will get the below window. Type File search in the keys preference page.

enter image description here

Note that by default no short-cut key was assigned to File Search. Click on Binding text box and assign your own short cut key for File Search. Also you can change the context when this command should be active. To set context look at When text box.

Note that if nothing is selected in the active editor then by default previous search key will be used in File Search text box. If some thing is selected in the active editor then this will be used as search key. If you copied any thing out side the eclipse then your can directly paste this in File Search's Containing Text text box.

like image 67
Chandrayya G K Avatar answered Sep 17 '22 15:09

Chandrayya G K