Eclipse中的搜索结果在同一面板的选项卡中打开 [英] search result in Eclipse opens in tab in same panel

查看:53
本文介绍了Eclipse中的搜索结果在同一面板的选项卡中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Eclipse中搜索某些内容并且结果显示在搜索"选项卡中时,每当我单击某个结果(例如.java)时,它就会在搜索"选项卡(位于下部面板)旁边的新选项卡中打开.,而不是在Eclipse中打开的其余文件旁边的新选项卡中(在上面板中).

When I search for something in Eclipse and the results show in the Search tab, whenever I click on a result (for example, a .java) it opens in a new tab next to the Search tab (in the lower panel), instead of in a new tab next to the rest of files that are open in Eclipse (in the upper panel).

这很烦人,因为我将下部面板用于工具视图",例如控制台,搜索,问题,任务等,并且我不希望在该面板中打开文件.

This is very annoying because I use the lower panel for "tool views" such as Console, Search, Problems, Tasks, etc and I don't want files to be opened in that panel.

我确定我在首选项中缺少一些设置,但找不到它,这种行为使我发疯.感谢您的帮助!

I'm sure I'm missing some setting in the preferences but I can't find it and this behaviour is driving me crazy. Thanks for your help!

推荐答案

我遇到了同样的问题,并最终找到了对我有帮助的解决方案,所以这也应该对您有用.

I had the same problem and was able to finally find a solution which helped me, so this should work for you as well.

请尝试以下操作:

  • 将搜索"视图拖动到当前位置之外,然后将其锚定在其他位置(我将其拖动到左侧资源管理器"视图的上方)
  • 双击搜索结果-它应与所有其他文件一起在面板中打开
  • 下一步再次拖动搜索"视图以将其锚定为底部面板,然后尝试再次打开搜索结果

您可能需要先试几次,然后才能解决,但是花了我不到一分钟的时间.

You may need to play around with this a few times before it works, but it took me less than a minute to fix.

看来,锚定搜索"视图的方式会影响双击后文件的打开位置.

It seems that the way how you anchor the Search view has influence where the files will open after you double click.

请参阅帮助我找到解决方案的原始帖子

这篇关于Eclipse中的搜索结果在同一面板的选项卡中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆