Maria_C
Maria_C

Reputation: 211

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

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?

Upvotes: 17

Views: 10153

Answers (4)

Wanbok Choi
Wanbok Choi

Reputation: 5452

First, Open the file.

Then:

  • New Window : Cmd + Shift + t
  • The Assistance Editor : Cmd + t

Upvotes: -1

Bill Feth
Bill Feth

Reputation: 323

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)

Upvotes: 12

Marco Pappalardo
Marco Pappalardo

Reputation: 955

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

Upvotes: 27

Maria_C
Maria_C

Reputation: 211

As soon as I asked a question I found a solution by accident.

  1. Command + click on the class to bring up the new action selector
  2. Shift + Alt + Click to chose where to open (tab, new window, etc)

Alternatively, can use Command + Option + Control + Shift to do this all at once but I'm not sure how convenient that is

Upvotes: 4

Related Questions