search result in Eclipse opens in tab in same panel

ε祈祈猫儿з 提交于 2021-01-04 07:21:07

问题


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!


回答1:


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

Try the following:

  • drag the Search view out of its current position and anchor it in a different place (I dragged it just above the Explorer view on the left)
  • double click on a search result - it should open in the panel with all other files
  • next drag the Search view again to anchor it as the bottom panel, and try to open a search result again

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.

See the original post which helped me find the solution



来源:https://stackoverflow.com/questions/37135253/search-result-in-eclipse-opens-in-tab-in-same-panel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!