I need to replace NSLog
with DDLogVerbose
in all files in the current project I am working on… What is an easy method to do this? (the search navigator only has search in it).
Also I need to add a line at the beginning of all .m files. How is this done quickly? (There are over 500 such files.)
To find text in a file, open the file in the Xcode source editor and choose Find > Find from the menu bar. Xcode displays the Find bar and its search controls at the top of the file. Enter a search term. Xcode searches the file, highlights matches, and notes how many it finds.
In the toolbar search, you have to press 'Find' then a menu appears – pick replace. Now you can replace project-wide.
Here are some pictures. In the toolbar search, you have to press 'Find' then a menu appears – pick replace. Now you can replace project-wide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With