Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - Shortcut for jumping to definition in Xcode 9?

In previous Xcode version , I could jump to definition with simple Cmd + click on that method/variable . But in Xcode 9, I feel uncomfortable to jump to definition .

Does anyone has a better solution for jumping to definition in Xcode 9 ?

I am tired of selecting options from dropdown list.

like image 299
Bikram Thapa Avatar asked Jun 12 '17 10:06

Bikram Thapa


People also ask

How do you jump to define in Xcode?

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


2 Answers

Ashish and Ghulam's answers were great but it still kinda bugged me that things had changed and I couldn't jump to definition as before. Then I found this...

Xcode9Beta2-Preferences->Navigation->Command-click on Code:->Jump To Definition:

Xcode9Beta2-Preferences->Navigation->Command-click on Code:->Jump To Definition

like image 149
user8315745 Avatar answered Sep 20 '22 16:09

user8315745


Solution 1:

  • Go to Xcode menu
  • Click on Preferences
  • Select Navigation Tab from Top
  • Select Command-click on Code
  • Change to "Jumps to Definition"

As you can see in this screenshot

Solution 2: Use

Ctrl + ⌘ + Left click

like image 31
Ghulam Rasool Avatar answered Sep 16 '22 16:09

Ghulam Rasool