Beautify Your Objective-C Code

Uncrustify is an open source code formatting tool for various languages including C, C++ and C#. It can also be used to format Objective-C code.

Uncrustify offers a large number of fine-grained options for code formatting that can be somewhat daunting to set up. The tool I want to mention here is a GUI application written by Ryan Maxwell that provides a neat user interface for setting the options for code formatting for Objective-C code. It is an application called UncrustifyX.

Here is a screenshot of the main window. It is easy to change the setting of an option on the left side and see its effect on the code on the right.


Clicking on the Info button for any option shows more detail about that option as shown here.


This GUI tool provides a way to define the formatting options exactly as you want. These options can then be saved as a configuration file. The command-line version of uncrustify can then use this configuration file to format source files. There is also a Xcode plugin available that modifies the Edit menu of Xcode to offer options for uncrustify.

More information about this tool for Xcode can be found here.

The following two tabs change content below.

Manoj Patwardhan

Latest posts by Manoj Patwardhan (see all)

Tags: , , ,


  1. Uncrustify is a good tool (I’ve tried it on Debian Linux and on OS X Lion), but it’s not a Mac app. Many of OS X/iOS developers love to work with native tools. Try StrictCode, source code formatter exclusively for Objective-C developers. Uncompromising simplicity and true flexibility. Welcome:

  2. Fragaria seems to be outdated and has issues compiling even after tracking it down and downloading.


Submit a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>