Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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).

Does someone have experience sharing code styles between Xcode and AppCode? Any tip?

like image 820
Arturo Avatar asked Mar 23 '15 14:03

Arturo


People also ask

Can I use Xcode for iOS app development?

An Apple developer can use Xcode to create apps for iPhone, iPad, Mac, Apple Watch, and Apple TV. It’s most commonly used for iOS app development (creating a mobile app). Swift 5.5 and SDKs for iOS 15, iPadOS 15, macOS Monterey, tvOS 15, and watchOS 8 are all included with Xcode 13.

How do I start an app project in Xcode?

The first thing you need to do is install Xcode. To start a new app project in Xcode, you’ll need to select a template for the platform you want the app to run on. Then choose the type of app you want to create (game, single view, document based, etc.).

What is AppCode and how to use it?

AppCode is a smart IDE for iOS/macOS development that supports Swift, Objective-C/C++, C/C++, and many other languages via plugins. In this quick start guide, we will introduce you to AppCode basic concepts and help you start working with AppCode in the most efficient way.

What is the best way to learn Xcode?

The best way for beginners to learn Xcode is through Apple’s own documentation. If you’re starting from scratch, Apple has excellent developer resources that will teach you how to code. It’s in your best interest to learn Swift—the official programming language to build apps for the Apple App Store and Mac App Store.


1 Answers

That was exact my problem one year ago.

There is ticket for AppCode to allow uncrustify import.

I ended up with solution that took me one day. Unfortunately uncrustify doesn't have documentation. As well categorisation of formatting in uncrustify is different from AppCode. I made uncrustify config as close as possible for AppCode formatting settings. I didn't succeed 100% but amount of difference is quite small (and still annoying). All configs ended up on wiki and in repository.

Finally all in our team (me and my buddy) are using AppCode and quite rare open Xcode. That was main fix for formatting.

like image 133
Eugen Martynov Avatar answered Oct 02 '22 00:10

Eugen Martynov