在可见标签下保留以前打开的文件选项卡 [英] Retain previous open file tab under visible tabs
问题描述
Eclipse Juno - 在我的工作区中,我在左侧打开了Package Explorer,右侧有6个可见的文件选项卡,显示列表下有17个文件。
Eclipse Juno - In my workspace I have 'Package Explorer' opened on the left side, on the right side I have 6 visible file tabs and under 'Show List' I have 17 files.
在这6个可视文件选项卡中,我正在处理第3个文件(abc.java),如果我在显示列表(xyz.java)下选择一个文件,那么eclipse显示xyz .java为活动选项卡,显示列表中的下一个5个文件。我以前的可见文件选项卡已经消失,现在我有一组新的可见文件选项卡。有没有办法让我以前的活动文件'abc.java'在可视文件选项卡下,我当前的活动文件为'xyz.java'
Out of those 6 visible file tabs, I'm working on the 3rd file (abc.java) and If I pick up a file under 'Show List' (xyz.java), then eclipse displays xyz.java as active tab and the next 5 files from the Show List. My previous visible file tabs are gone and now I have a new set of visible file tabs. Is there a way to have my previous active file 'abc.java' under visible file tabs with my current active file as 'xyz.java'
推荐答案
我想我也有同样的问题,我通过切换主题来解决它。
I think I just had the same problem and I solved it by switching the theme.
转到首选项 - >常规 - >外观并切换到经典主题。
Go to Preferences -> General -> Appearance and switch to the Classic theme.
我不明白为什么这有帮助,但它对我有用。
I can't understand why this helps, but it worked for me.
更新:
再次被咬住,我再次检查,并且@anweibel在他的答案中说,可以在CSS中编辑。
After being bitten by this again I checked again and as @anweibel says in his answer this can be edited in the CSS.
我刚刚使用Eclipse Marketplace安装了E4 CSS编辑器插件,以便我可以在首选项 - > Apperance下从Eclipse直接更改CSS。我将swt-mru-false从false更改为true,以便GTK主题的相关部分如下所示:
I just installed the E4 CSS editor plugin using the Eclipse Marketplace so that I could change the CSS directly from Eclipse under Preferences -> Apperance. I changed swt-mru-visible from false to true so that the relevant part for the GTK theme looked like this:
.MPartStack {
font-size: 11;
swt-simple: false;
swt-mru-visible: true;
}
需要重新启动才能使更改生效。
A restart was required for the changes to take effect.
还可以在这里找到更多信息: Eclipse选项卡重新定位
More info can also be found here: Eclipse tabs repositionning
这篇关于在可见标签下保留以前打开的文件选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!