搜索所有文件中的给定单词 [英] search all files for a given word
本文介绍了搜索所有文件中的给定单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用appcode来处理xcode项目.如何在项目中的所有源文件中搜索给定的关键字?关键字不必是方法.像这样:
I am using appcode to work on an xcode project. How do I search all source files in my project for a given keyword? The keyword need not be a method. Something like:
grep keyword *.m *.h
谢谢.
推荐答案
要在AppCode中对所有项目文件执行搜索,请使用Edit
| Find
| 查找路径.在Text to find
字段中输入关键字,在File mask(s)
字段中输入扩展名以逗号分隔:
To perform a search across all the project files in the AppCode use Edit
| Find
| Find in Path. In the Text to find
field put your keyword, in the File mask(s)
field put the extensions separated by comma:
请注意,范围设置为Whole project
,如果需要,可以对其进行限制.
Note that the scope is set to the Whole project
, you can limit it if needed.
这篇关于搜索所有文件中的给定单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文