7

In Eclipse when you click on a method name a variable, or an object for example, the same ones are highlighted in a specific color elsewhere in the code for easy finding.

Is there a similar feature in Xcode?

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Ayrad
  • 3,996
  • 8
  • 45
  • 86
  • Hi here's my similar answer on another thread,it have an solution http://stackoverflow.com/a/31214118/5030846 – Mr.Fingers Jul 03 '15 at 21:00

2 Answers2

17

You can highlight them using a find operation:

If you've selected a word, hit Cmd+E (find based on current selection), Cmd+F (show the find bar), then Cmd+G (find next). You can become very productive in Xcode (or any other OS X app for that matter) through judicious use of Cmd+E, Cmd+F and Cmd+G.

Nick Forge
  • 21,344
  • 7
  • 55
  • 78
7

If you count underlining as highlighting I would say "yes". If you select the Variable and keep the cursor there, Xcode will underline all other instanced of that variable.