Eclipse 选项卡重新定位
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12578197/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse tabs repositionning
提问by Paul Webster
I have been using Indigo for a while, and now trying Juno
There is a sligth bothering difference:
我一直在使用 Indigo 一段时间,现在尝试使用 Juno
有一个令人烦恼的差异:
On Indigo When you had 10 tabs opened
在 Indigo 打开 10 个标签时
A | B| C | D | J | H | G ....(F | T | S)
一个 | 乙| C | D | J | H | G ....(F | T | S)
and currently on B
when you selected the file shown in tab T again, then this tab (on Indigoand that's the problem not on Juno) would be repositioned like that:
当您再次选择选项卡 T 中显示的文件时,当前在 B 上,则此选项卡(在Indigo 上,这不是 Juno 上的问题)将重新定位如下:
A | B | T| C | D | J | H ....( G | F | S)
一个 | 乙 | T| C | D | J | H ....( G | F | S)
This is useful since, if opening T after B, it means they should be grouped together
这很有用,因为如果在 B 之后打开 T,则意味着它们应该组合在一起
on Juno it does not reposition them, instead you will need to find most recent files far in the tab list
在 Juno 上,它不会重新定位它们,而是需要在选项卡列表中找到最近的文件
Q: how to set it back? I searched params with 'tabs' in the options with no result
问:如何设置回来?我在选项中用“tabs”搜索参数但没有结果
edit: still the same in new versions (Kepler)
编辑:在新版本中仍然相同(开普勒)
edit: Thanks to Paul' answer, a good solution is to search for .css files in eclipse folder, and set swt-mru-visible property to true in e4-default-win7.css for example
编辑:感谢 Paul 的回答,一个好的解决方案是在 eclipse 文件夹中搜索 .css 文件,例如在 e4-default-win7.css 中将 swt-mru-visible 属性设置为 true
回答by Paul Webster
Juno by default doesn't present the MRU (Most Recently Used) tab behaviour that you see in Indigo (it never worked quite right) and instead uses the Editor document order.
默认情况下,Juno 不显示您在 Indigo 中看到的 MRU(最近使用的)选项卡行为(它从来没有完全正确地工作过),而是使用编辑器文档顺序。
I believe you can re-activate it be either switching to the Classic theme in Preferences>General>Appearance
or by editing the CSS. See http://wiki.eclipse.org/Eclipse4/CSS
我相信您可以Preferences>General>Appearance
通过在 CSS 中切换到经典主题或通过编辑 CSS来重新激活它。见http://wiki.eclipse.org/Eclipse4/CSS
.MPartStack {
swt-mru-visible: true;
}
Don't forget to restart Eclipse to make it use the new parameters.
不要忘记重新启动 Eclipse 以使其使用新参数。
回答by Robert Mikes
Apparently this option was added in Eclipse Mars 4.5:
显然这个选项是在 Eclipse Mars 4.5 中添加的:
Window -> Preferences -> General -> Appearance ->
窗口 -> 首选项 -> 常规 -> 外观 ->
Visible tabs on overflow:
[X] Show most recently used tabs
溢出的可见标签:
[X] 显示最近使用的标签