I am searching for a keyboard shortcut that allows me to combine 'Cmd-t' (open new tab) and 'Cmd-click on a symbol' (jump to definition). I want to be able to open the symbol definition in a new tab, much like Cmd-click (Ctrl-click on Windows) opens a link in a new tab when using a web browser.
I tried some different combinations but have given up after Cmd-option-Shift-click crashed Xcode!
I'm currently using Xcode 4.6.1.
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.
CTRL + TAB - Select Next Tab. CTRL + SHIFT + TAB - Select Previous Tab.
Now command-double-click the symbol to open in new tab.
The easiest way I found is,
Cmd+T new tab. Then Cmd+Click on the symbol.
I think Xcode should have, Cmd+Shift+Click
to open the function/class in new tab. OR Alt+Cmd+O
or something like this :)
UPDATE:
It was an old trick. Now you can use @Leigh answer. Cmd + double click + (set preferences to open double click navigation in new tab)
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