Xcode在所有项目文件中查找和替换 [英] Xcode Find and replace in all project files

查看:501
本文介绍了Xcode在所有项目文件中查找和替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我正在处理的当前项目中的所有文件中,我需要用DDLogVerbose替换NSLog.什么是简单的方法? (搜索导航器中仅包含搜索内容).

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).

我还需要在所有.m文件的开头添加一行.如何快速完成? (有超过500个此类文件.)

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.)

推荐答案

以下是一些图片.在工具栏搜索中,您必须按查找",然后会出现一个菜单-选择替换".现在,您可以替换整个项目.

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.

祝您编程愉快!

这篇关于Xcode在所有项目文件中查找和替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆