Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 Jump to definition in a new tab, window, or other navigation area with Option-Shift-Command+Click

Tags:

xcode

shortcut

Xcode 9 seems to be missing jump to definition shortcut Option-Shift-Command+Click. You used to be able to use to open definition in a new tab, window, or other navigation areas with Option-Shift-Command+Click. In Xcode 9 this still works from the file navigator but not when you use this on a class. Has anyone been able to figure out how to use this shortcut in xcode 9?

like image 248
Maria_C Avatar asked Jul 14 '17 15:07

Maria_C


People also ask

How do you jump to define in Xcode?

To directly jump to a definition, you can combine ^ ctrl + ⌘ command + click .

What is the keyboard shortcut to move to the top of a file Xcode?

Jump to the top is a simple matter, that is just CMD + UP .


2 Answers

You can use Xcode preferences to personalise the double click and the action selector.

From this window you can change CMD + click to open the definition instead of the action selector (as it was in Xcode 8)

you can also change the behaviour of optional navigation, so that it opens a tab

By setting the configuration as shown below, you can CMD + ALT + click to jump to definition in a new tab.

This also restores Option-Shift-Command+Click to show the window selector as you wanted

Xcode

like image 96
Marco Pappalardo Avatar answered Sep 22 '22 23:09

Marco Pappalardo


Marco's screenshot was helpful.

The keyboard commands for Xcode 9 have changed:

Jump to Definition

  • Same window : Command-Control-click (was Command-double-click)
  • In assistant pane : Command-Option-Control-click
  • In separate window/pane : Command-Option-Control-Shift-click

Quick Help

  • Option-click (same as Xcode 8)
like image 31
Bill Feth Avatar answered Sep 21 '22 23:09

Bill Feth