一次运行所有 Xcode 的“Fix-it”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32505307/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Run all of Xcode's "Fix-it"s at once
提问by inVINCEable
After upgrading to Xcode 7, to support iOS 9, i have hundreds of fix-it errors and warnings. Is there a one push button to make Xcode run them all rather then individual going through them one by one?
升级到 Xcode 7 后,为了支持 iOS 9,我有数百个修复错误和警告。是否有一个按钮可以让 Xcode 运行它们,而不是单独一个一个地运行它们?
回答by HAS
回答by JGrn84
XCode's "fix-it" isn't always reliable enough to make the changes that the code needs to run properly. Even if there was such a button, I wouldn't advise using it. The only thing I can think of to make it quicker to go through is to use: Navigate > Jump to Next Issue
which would mean you wouldn't have to comb through the code to find all of the errors, Xcode would take you straight to them.
XCode 的“修复”并不总是足够可靠,无法进行代码正常运行所需的更改。即使有这样的按钮,我也不建议使用它。我能想到的唯一能让它更快通过的方法是使用:Navigate > Jump to Next Issue
这意味着您不必通过梳理代码来查找所有错误,Xcode 会直接带您找到它们。
回答by ScottyBlades
control- option- command- f
控制-选项-命令- ˚F
?
?
?
f
?
?
?
f