Xcode:如何让它停止打开额外的窗口?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6053800/
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
Xcode: how to make it stop opening extra windows?
提问by foreyez
Every time I double click a file it opens it in a new window. (If I single click then it shows it in the main window). I just want it to open the thing in the main window, regardless of if I double click or single click it. Kind of like how visual studio or eclipse work.
每次我双击一个文件时,它都会在新窗口中打开它。(如果我单击,则它会显示在主窗口中)。我只是想让它在主窗口中打开这个东西,不管我是双击还是单击它。有点像 Visual Studio 或 Eclipse 的工作方式。
Same thing when I try to find text in a file (command-shift-f), in the results, if i double click them it'll open the file in a new window...
当我尝试在文件中查找文本时也是如此(command-shift-f),在结果中,如果我双击它们,它将在新窗口中打开文件......
All these new windows are annoying, any way to make it so it doesn't create new windows and just displays the code in the main window at all times?
所有这些新窗口都很烦人,有什么办法可以使它不创建新窗口,而是始终在主窗口中显示代码?
回答by Siem Abera
Go to your Preferences window and change the value of
转到您的首选项窗口并更改值
- Double Click Navigationto Same as Click
- 双击自动导航到同点击
(Note: In newer versions of Xcode this is found in the Navigationtab.)
(注意:在较新版本的 Xcode 中,这可以在导航选项卡中找到。)