在Xcode <4中,您可以按住"option"键,"Replace All"按钮将变为"Replace in Selection".从Xcode 4开始,这没有任何作用.任何人都知道是否有新方法,或者是错误提交时间?
I'd like to do the following in Xcode:
Find all NSLog commands without comments, and replace it with //NSLog...
In other words, I want to comment all NSLog calls. Is this possible? Is there an easy way to do this?
我有大概1,300个实例
#import <xxxxx/ClassName.h>
Run Code Online (Sandbox Code Playgroud)
我想替换
#import "ClassName.h"
Run Code Online (Sandbox Code Playgroud)
我注意到如果我使用cmd-shift-f菜单我可以去替换>正则表达式.ClassName不是唯一的,xxxxx总是相同的.
什么是正则表达式将取代所有这些?