XCODE 在构建和运行时自动保存代码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2271031/
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-14 19:07:55  来源:igfitidea点击:

XCODE auto save code when build and run?

objective-cxcodebuildautosave

提问by Sukitha Udugamasooriya

How to tell Xcode to save the source code automatically without prompting, each time I hit on the build and run?

每次我点击构建并运行时,如何告诉 Xcode 在没有提示的情况下自动保存源代码?

回答by Carl Norum

  1. Xcode preferences
  2. Pick 'Building' tab
  3. Lower right corner "For unsaved files:" pick "Always save".
  1. Xcode 首选项
  2. 选择“建筑”选项卡
  3. 右下角“对于未保存的文件:”选择“始终保存”。

回答by zoul

Xcode Preferences → Building → Build Options → For Unsaved Files → Always Save?

Xcode 首选项 → 构建 → 构建选项 → 对于未保存的文件 → 总是保存?

回答by Gabe Rainbow

it seems this is the default behaviour in the current xcode 5. hopefully it will return so we can turn it OFFand dont have this painfully slow rebuild.

似乎这是当前 xcode 5 中的默认行为。希望它会返回,以便我们可以转动它,OFF并且不会进行这种痛苦缓慢的重建。