Xcode: how to make it stop opening extra windows?

Xcode

Xcode Problem Overview


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?

Xcode Solutions


Solution 1 - Xcode

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

Solution 2 - Xcode

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

SCreenshot

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionShai UIView Question on Stackoverflow
Solution 1 - XcodeSiem AberaView Answer on Stackoverflow
Solution 2 - XcodeFlimmView Answer on Stackoverflow