Prior to Xcode 11, you could use cmd+shift+o
to open the quick open menu, and then use opt+shift+enter
to show the little jump dialog to decide where to open the file, e.g.
Note that the dialog has spots for opening in new window or new tab.
In XCode 11, with all the editor improvements (which are awesome), the little jump dialog has been replaced with some blue highlights that show up in the current window. This seems nice, but I can't figure out how to get a file to open in a new tab or new window.
Didn't realize how important this was in my workflow until it went away :)
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.
Alternatively you can press CMD+T to open a new tab, which will automatically show the tab bar.
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.
When the highlighting appears
If multiple editors are open you can navigate with the arrow keys to specify the insertion location for the new editor.
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