Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 Refactor : Can only refactor C and Objective C code

Tags:

xcode6

I'm getting the above error trying to rename an array. Is there any other way? Trying this

Right click on variable -> Refactor -> Rename 

I'm sure there has to be another way?

like image 778
Marin Avatar asked Jul 13 '14 17:07

Marin


1 Answers

If you want to rename a local variable within a method or function and just want to rename all occurrences within that function, try this...

Click on the variable and leave your mouse there for a moment.... A down arrow will appear just to the right of the variable name. Click on that down arrow and choose "Edit All In Scope"

Once you click on the variable, notice the small down arrow to the right of it

Click on Edit All in Scope

like image 61
Ray Perea Avatar answered Sep 30 '22 14:09

Ray Perea