Xcode Key Bindings to Make Refactoring Less Painful
Xcode supports automated refactoring. Supposedly.
In practice, the options are limited and often unavailable. You’ll right-click something, navigate to the Refactor submenu… only to find that the command you want is grayed out. It’s a waste of time.
[…]
With these shortcuts, I can try an automated refactoring in less than a second. If it’s not available, I get feedback right away — no wasted mouse clicks. And when it is available, I stay in the flow.
The one I’ve had the best luck with is Edit All in Scope (Command-Control-E), which isn’t in the Refactor menu.
Previously:
2 Comments RSS · Twitter · Mastodon
I've never used Edit All in Scope before. It seems to be a little snappier than Rename, but of course it's limited to current scope, why do you prefer it? Do you find it works more reliably?
@Graham It’s much more reliable and doesn’t replace the current view with a slow animation showing multiple other files.