Create New Local Variable Inline?

Hi!

I can go from this:
center = region.center

to this:
    CLLocationCoordinate2D center;
    center = region.center;


But there seems to be no way to set it to generate this:

CLLocationCoordinate2D center = region.center;

I prefer the latter style - always. Is there a way to set this that I am missing?

thanks!

PS: Using Eclipse / Java over the years I've even gotten used to writing code like this:
"region.center;"
Then "assign to new local variable" which would make it into this: CLLocationCoordinate2D center = region.center;

The advantage is that the return type is filled in which saves time and effort. I don't think AppCode has that yet, but would love to see it.

Please sign in to leave a comment.