Xcode: view references for a variable?

Beside Xcode, there is AppCode IDE from JetBrains. And in AppCode it is easily possible, just select Search --> Find Usages.


I was looking for similar option. I do not know why XCode did not included that. But there is a work around I use until Apple give that option in XCode.

Try this in the source code (.m) file,

Select the symbol, right click -> Refactor -> Rename 
-> Give a name whatever you wish, then press Preview. 

Now you can find all the references. Now you can Cancel it or do not rename it. :)


Try using: Find in project -> As symbol context menu. Sometimes you may want to search as definition instead.

Tags:

Xcode