Xcode - open current file in a NEW window (a real challenge !)

Fattie picture Fattie · Oct 20, 2013 · Viewed 11.6k times · Source

enter image description here

Say you have File.m showing in the blue area above.

I want File.m to open in a new separate window.

How to do this??

Note that - of course - IF you have the ProjectNavigator showing and IF you can see the filename "File.m", then double-click on the filename and it will open in a new window.

What I want to do is open ANOTHER copy of the "CURRENT" file (the one in the primaryEditor) in a NEW WINDOW - without touching the ProjectNavigator.

Any ideas? Cheers


Note that ... (an excellent page here)

http://realmacsoftware.com/blog/xcode-4-s-less-obvious-shortcuts

if you click on whatever file is in the current primaryEditor, then shift option apple comma that will indeed open the following "freaky little-known Xcode popup" ...

enter image description here

you can then, indeed, choose to open a new window. (So to be clear, that is exactly what I want to do.)

So, I want to be able to do that in one step. Cheers!

Answer

Max Chuquimia picture Max Chuquimia · Oct 27, 2013

In XCode's Preferences you can change the following: xcode preferences

And then right-click within the primary editor and click "Open in Separate Window"

Edit: Instead of right clicking in the primary editor you can simply type command+option+, (comma)