Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: how to make it stop opening extra windows?

Tags:

xcode

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?

like image 208
Shai UI Avatar asked May 19 '11 04:05

Shai UI


People also ask

How do I open multiple windows in Xcode?

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.

How to open multiple files in Xcode?

Double click opens file in new window/tab (depending on prefs), single click opens it in active tab.

How do I open a new tab in Xcode?

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.

How do I open a new tab in Swift?

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.


2 Answers

Go to your Preferences window and change the value of

  • Double Click Navigation to Same as Click

(Note: In newer versions of Xcode this is found in the Navigation tab.)

enter image description here

like image 190
Siem Abera Avatar answered Oct 21 '22 09:10

Siem Abera


In Xcode 8, you can change this setting by going to Preferences, Navigation, and changing "Double Click Navigation" to "Same as Click".

SCreenshot

like image 27
Flimm Avatar answered Oct 21 '22 11:10

Flimm