开发者

How to disable indexing/search on certain file types in XCode 4?

For one reason or another, I have a few nasty JSON files in my XCode project. When I do searches, they will sometimes get hung up on these files.

Is there a way to prevent XCode开发者_StackOverflow中文版4 from indexing certain file types, or files?


  1. Go to the search navigator (⌘+3)
  2. click on the magnifier within the search field
  3. choose "Show Find Options"
  4. click on "Find in", there should be "Workspace"
  5. use "Custom…" and select "Path Extension" "is not equal to" "json"
  6. give it a name e.g. SearchWithoutJson
  7. next time you can enter something in the search field and select your search setting

//EDIT: actually the next search with selecting SearchWithoutJson doesn't work. You still need to display the search options and make sure the right one is selected in "Find in"


Don't include the JSON files in your project at all.

Instead insert a custom build phase that copies these files into the application bundle.

Or maybe you can put all JSON files into one big file, so indexing will be faster.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜