Eclipse:使用同一编辑器选项卡通过多次搜索打开的文件 [英] Eclipse: Files opened by multiple searches using same editor tab

查看:20
本文介绍了Eclipse:使用同一编辑器选项卡通过多次搜索打开的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在eclipse中使用文件搜索"功能在.java"文件中查找一些文本时,我可能会得到几个搜索结果的列表.假设我双击文件A.java",然后在新的编辑器选项卡中打开 A.java.如果我再次使用文件搜索"功能来查找其他一些文本,并且这次双击文件B.java",该文件将替换编辑器中的A.java".

When using the "file search" function in eclipse to find a bit of text in a ".java" file, I may get a list of several search results. Let's say I double click on the file "A.java" which then opens A.java in a new editor tab. If I then use the "file search" function again to find some other bit of text and this time double click on the file "B.java", this file will replace "A.java" in the editor.

我希望 Eclipse 为 B.java 打开一个新编辑器,以便 A.java 和 B.java 在我的编辑器选项卡中都可用.这可能吗?我已经查看了首选项,但我不确定哪个选项会给我这种功能.

I'd like Eclipse to open a new editor for B.java so that both A.java and B.java are available in my editor tabs. Is this possible? I've had a look around in the preferences but I'm not sure what option would give me this bit of functionality.

推荐答案

禁用该选项

首选项 > 常规 > 搜索 > 重复使用编辑器来显示匹配

Preferences > General > Search > Reuse editors to show matches

这篇关于Eclipse:使用同一编辑器选项卡通过多次搜索打开的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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