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.
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...
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?
Right-click the filename in the main XCode window and pick "Open in Separate Editor". Every time you do that, you get a new complete editor window.
Double click opens file in new window/tab (depending on prefs), single click opens it in active tab.
You can right-click and pick open in tab. You can also set Xcode, preferences, Navigation, Optional Navigation to Uses Tab. Then when you hold down the option key and click on a file it should open in a new tab, if it's not already open.
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.
Go to your Preferences window and change the value of
(Note: In newer versions of Xcode this is found in the Navigation tab.)
In Xcode 8, you can change this setting by going to Preferences, Navigation, and changing "Double Click Navigation" to "Same as Click".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With