Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 263
Fattie Avatar asked Oct 20 '13 13:10

Fattie


People also ask

How to open new file in new tab Xcode?

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

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)

like image 101
Max Chuquimia Avatar answered Sep 23 '22 23:09

Max Chuquimia


Open the file what you want to open in the NEW window.

  • Command + Shift + t

Open the file what you want to open in the separated window.

  • Command + Option + ,
like image 28
Wanbok Choi Avatar answered Sep 25 '22 23:09

Wanbok Choi