Categories
Featured iPhone Development Resources iOS Programming Tools And Utilities Objective-C Open Source iOS Libraries And Tools

An Xcode Plugin Enabling Easy Use Of The Clang Source Code Formatting Tool

I’ve mentioned a number of Xcode plugins that can be found over on the Xcode plugin listing.

Here’s an Xcode plugin submitted by Travis Jeffrey that makes it easy to format your code using the Clang formatting tool in Xcode called ClangFormat-Xcode.

ClangFormat-Xcode provides easy access to the built-in LLVM, Google, Chromium, Mozilla, and Webkit styles or custom formatting based upon your own configuration file.

You’ll also find a handy tip in the readme on how to set it up so that ClangFormat-Xcode automatically runs on save.

Here’s an image from the readme showing ClangFormat-Xcode in action:

Xcode Clang Formatting Plugin

You can find ClangFormat-Xcode on Github here.

A handy plugin for formatting your code.