简体   繁体   English

如何在Xcode和AppCode之间共享代码样式?

[英]How to share code style between Xcode and AppCode?

We want to start to use AppCode in my team but we want to use same code style between Xcode and AppCode (we're already using Uncrustify on Xcode). 我们希望开始在团队中使用AppCode,但我们希望在Xcode和AppCode之间使用相同的代码样式(我们已经在Xcode上使用Uncrustify)。

Does someone have experience sharing code styles between Xcode and AppCode? 有人在Xcode和AppCode之间共享代码样式方面有经验吗? Any tip? 有小费吗?

That was exact my problem one year ago. 那正是一年前我的问题。

There is ticket for AppCode to allow uncrustify import. 有用于AppCode 票证 ,用于允许uncrustify导入。

I ended up with solution that took me one day. 我最终得到了花了我一天的解决方案。 Unfortunately uncrustify doesn't have documentation. 不幸的是uncrustify没有文档。 As well categorisation of formatting in uncrustify is different from AppCode . 作为格式以及分类uncrustify不同于AppCode I made uncrustify config as close as possible for AppCode formatting settings. 对于AppCode格式设置,我使uncrustify配置尽可能接近。 I didn't succeed 100% but amount of difference is quite small (and still annoying). 我没有100%成功,但是差异很小(仍然很烦人)。 All configs ended up on wiki and in repository . 所有配置最终都存储在Wiki和存储库中

Finally all in our team (me and my buddy) are using AppCode and quite rare open Xcode. 最终,我们团队(我和我的好友)中的所有人都在使用AppCode和非常罕见的开放Xcode。 That was main fix for formatting. 那是格式化的主要解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM