如何使选项卡在 Xcode 4 上正常工作? [英] How can I make the tabs work normally on Xcode 4?

查看:27
本文介绍了如何使选项卡在 Xcode 4 上正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 终于添加了标签,但问题是它们的行为很奇怪.例如,只有在打开新标签时,他们才会将标签保持打开状态.

Xcode finally added tabs but the problem is that they behave very strange. For example they will keep a tab open only if it was opened to a new tab.

如果您仅通过单击项目树来打开一个文件,只要您单击树中的另一个文件,Xcode 就会关闭您的选项卡.

If you open a file just by clicking in the project tree, Xcode will close your tab as soon as you are clicking on another file in the tree.

是否可以让它们表现得像真正的选项卡并防止 Xcode 重用它们?怎么样?

Is is possible to make them behave like real tabs and prevent Xcode from reusing them? How?

推荐答案

2020 年更新:

终于,将近 10 年后,Xcode 12.x 现在似乎主要解决了此处描述的问题.导航设置面板中有一个新的导航样式选项,用于控制此行为.

Finally, almost 10 years later, Xcode 12.x now appears to mostly resolve the issue described here. There is a new Navigation Style option in the Navigation settings panel that controls this behavior.

这种行为有一些新的怪癖/设计选择似乎有意义,但我仍然习惯了新的体验.例如,除非该选项卡中的文件最近被编辑过,否则该选项卡将被重新使用;这样的标签用斜体标题表示.

The behavior has some new quirks/design-choices that seem to make sense, but I'm still getting used to the new experience. For example, a tab will get re-used unless the file in that tab has been edited recently; such a tab is indicated with an italics title.

以前的回答

我认为您目前无法获得您想要(或我想要)的行为.虽然选项卡的工作方式类似于 Safari,但它们的工作方式与其他流行 IDE(Visual Studio 或 Eclipse)中的选项卡不同.而对我来说,这很糟糕.

I don't think you can currently get the behavior you desire (or I desire). While the tabs work like Safari, they don't work like tabs in other popular IDEs (Visual Studio or Eclipse). And for me this kind of sucks.

一般来说,我希望 IDE 选项卡可以打开 1 个以上的文件.因此,如果我单击项目树中的一个文件,我希望它会切换到我用该文件打开的选项卡 - 如果我已经打开了它.相反,XCode 4 将当前选项卡更改为我单击的文件 - 使用同一文件制作 2 个选项卡.同一个文件有 2 个标签是没有用的.

In general, I expect IDE tabs to keep more than 1 file open. So if I click a file in the project tree, I expect that it will switch to the tab I have opened with that file - if I have already opened it. Instead, XCode 4 changes the current tab to the file I clicked - making 2 tabs with the same file. Having 2 tabs with the same file is fairly useless.

这会强制用户先扫描标签栏以查看文件当前是否已打开;如果它没有打开,那么你可以查看项目树.但是,如果您先单击项目树(我倾向于这样做),那么您将受到惩罚,因为您刚刚杀死了一个选项卡.

This forces the user to scan the tab bar first to see if the file is currently opened; if it's not opened then you can look to the project tree. But if you click in the project tree first (which is what I tend to do) then you get punished because you will have just killed a tab.

这篇关于如何使选项卡在 Xcode 4 上正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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