How do I hotkey directly to File Search tab in Ecl

2019-01-30 05:45发布

When I use CTRL+H I end up on the Java Search tab. I would very much like a shortcut to go directly to File Search instead. Is that possible?

See image here for what I'm talking about: enter image description here

9条回答
甜甜的少女心
2楼-- · 2019-01-30 06:05

Probably this feature came recently [confirmed its there in since Juno] and looks intelligent. Press Ctrl+H --> Customize --> [Checkbox] Remember last used page. This way you are not far from other options if required anytime. So if you use File search often then you will not get annoyed getting what you last chose.

查看更多
3楼-- · 2019-01-30 06:09

I learnt to use a "pseudo-hotkey" ALT+A F (works also as ALT+A ALT+F), which resolves to: "Menu Se[a]rch → [F]ile..." and has the advantage of being always present, without need for reconfiguration.

查看更多
We Are One
4楼-- · 2019-01-30 06:10

I actually think the best (and easiest way) is to simply open the search dialog (ctrl + h), hit customize, and then select the checkbox for "Remember last page used." Then tab over to the File Search once. So long as that is the last search tab you used, it will always open there. The advantage to this is that you don't lose easy access to the other tabs, should you actually need them! (working in Eclipse Kepler).

Customize view

查看更多
不美不萌又怎样
5楼-- · 2019-01-30 06:14

Another option is to open the search dialog (Ctrl+H) then click customize and hide java and task search tabs, next time you do Ctrl+H, file search will be the only one showing, thus it will be selected by default

查看更多
疯言疯语
6楼-- · 2019-01-30 06:20

As far as I know, the search window tab depend of the open file you're on when calling the search function. So, for example if your on a web.xml file, it will open the "plug-in search" instead of the "java-search".

Edit: there is a way to force the default open tab, by assigning a shortcut to the "File Search" action in the "Keys" preference panel.

查看更多
女痞
7楼-- · 2019-01-30 06:21

I've run into this problem before, too.

I tried following the advice in the question response given by @Martin to rebind Ctrl+H to "File Search" in Window | Preferences | General | Keys, but for some reason, I don't have a "File Search" entry in the Command column. (I'm running Eclipse 3.3 currently; maybe the "File Search" entry was added in a subsequent release?)

Update: As Martin pointed out in a comment on this answer, I didn't have the "Include unbound commands" checkbox checked in the Preferences | Keys dialog, which is why "File Search" wasn't showing up for me. I now have Ctrl+H bound to "File Search", as Martin suggested in his answer on this page, and it works great. Thanks Martin!

I ended up working around the original problem by bringing up the Search dialog with Ctrl+H, then clicking the Customize button on the dialog, which brings up a "Search Page Selection" dialog which allows you to hide or show tabs on the Search dialog. I hid the tabs other than "File Search," which causes "File Search" to be activated by default on future uses of Ctrl+H.

查看更多
登录 后发表回答