一次运行所有 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:10:28  来源:igfitidea点击:

Run all of Xcode's "Fix-it"s at once

xcodeide

提问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

There is actually a solution for this in Xcode 7.21's Editormenu.

在 Xcode 7.2 1Editor菜单中实际上有一个解决方案。

enter image description here

在此处输入图片说明

This is the shortcut:

这是快捷方式:

?+?+?+f

?+ ?+ ?+f

which is

这是

ctrl+alt+cmd+f

ctrl+ alt+ cmd+f

1This is the version I can confirm, might work in earlier versions as well.

1这是我可以确认的版本,可能也适用于早期版本。

回答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 Issuewhich 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

回答by dengST30

Fix All Issues button in Xcode 10.3

修复 Xcode 10.3 中的所有问题按钮

0

0