Chapter 12. Advanced Editing
In Chapter 5, you explored the Source editor and some of its features. In this chapter, you’ll explore a few more powerful features and familiarize yourself with some additional tips and tricks to make better use of the editor.
Renaming Symbols
The Edit All in Scope command is a simple and often overlooked editor feature. As its name suggests, you can edit a symbol name and automatically change each instance of it within the current scope at the same time.
Consider a local variable named bob
. You’ve decided a variable should sound more formal, so you want to change bob
to robert
. Assuming bob
is reused throughout the current scope of a long method, it would be tedious and error-prone to find and rename each instance, ...
Get Mastering Xcode: Develop and Design, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.