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

查看:103
本文介绍了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天全站免登陆