在 Xcode 中当前活动选项卡旁边打开新选项卡
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37858965/
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
Open new tab just next to the current active tab in Xcode
提问by iOSGeek
When you hit CMD
+ T
in Xcode it will open new tab but in the last position, how can I change this behaviour to be able to open new tab just next to the current active tab
当您在 Xcode 中点击CMD
+T
时,它将打开新选项卡但在最后一个位置,如何更改此行为以便能够在当前活动选项卡旁边打开新选项卡
采纳答案by iOSGeek
In Xcode 11 this is the default behavior now. Cmd + T
opens a tab next the active one.
在 Xcode 11 中,这是现在的默认行为。Cmd + T
在活动标签旁边打开一个标签。
回答by Dershowitz123
I haven't come across anywhere or found an answer myself for this. The logical explanation for Xcode opening the current file in a new tab and not the next file would be that Xcode cannot figure out what file you wish to open in the new tab, though in the navigator you may see the files are one below another, but it is upto you to open whichever file you want and Xcode let's you be the judge of that. Perhaps Xcode could just open a new empty tab but instead of that it opens a new tab with the same file and let's you choose which file you want to pick.
我没有遇到任何地方,也没有自己为此找到答案。Xcode 在新选项卡中打开当前文件而不是下一个文件的逻辑解释是 Xcode 无法确定您希望在新选项卡中打开哪个文件,尽管在导航器中您可能会看到文件在另一个之下,但是你可以打开任何你想要的文件,Xcode 让你来判断。也许 Xcode 可以只打开一个新的空选项卡,但它会打开一个具有相同文件的新选项卡,让您选择要选择的文件。
OR
或者
There is one more option but it ain't Cmd + T
. You can select the file you want to open in the new tab holding(don't let go) Option + Shift
and then when a dialogue opens, you can click the +
mark on the top right of that window.
还有一种选择,但不是Cmd + T
。您可以在新选项卡中选择要打开的文件(不要放开)Option + Shift
,然后当对话框打开时,您可以单击该+
窗口右上角的标记。
OR
或者
You could set the Double-click-navigation
(Xcode -> Preferences -> Naigation) to Uses separate tab
.
您可以将Double-click-navigation
(Xcode -> Preferences -> Naigation) 设置为Uses separate tab
.