Xcode Tip: Using Search Results as To-Do List

Xcode’s search functionality has some powerful tools, but not all of them are obvious at first sight. In this article we have a look at how to use the Xcode search results as a to-do list, and also how we can integrate it into our refactoring workflow. Starting a Refactoring Let’s say we have to change a method, that is used in multiple places of our code base. The first choice is the built-in refactoring options that we can access from the Editor menu Editor > Refactor > … or by selecting the method with a double-click and a right-click on it to access the context menu. Though sometimes the refactoring options appear disabled, this can happen especially in big projects, when Xcode is not able to identify where the code is being used. So let’s use the search function to find all the code places that we need to convert. Creating a To-Do List First we open the Find Navigator in the left Xcode panel by using the keyboard shortcut command + 4 . Here we can enter the name of o...