Skip to content

yieldmo/uncrustifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uncrustifier

A simple Xcode 8 extension that wraps https://github.com/uncrustify/uncrustify/

build

  1. Build using Xcode 8+.
  2. If you are using macOS 10.11, run sudo /usr/libexec/xpccachectl and restart your machine.
  3. Replace /Uncrustify/uncrustify.cfg with your desired configuration file.
  4. Open Uncrustifier.xcodeproj and run the Uncrustify target. Choose Xcode as the host application.
  5. Make sure a valid team is set in both Uncrustifier and Uncrustify target: Project > Targets > (Signing section) Team

installation

  1. To install the extension, grab the latest release. When you open Uncrustifier.app, the extension will be added to XCode.
  2. You can change the configuration file without rebuilding by overwriting Uncrustifier.app/Contents/PlugIns/Uncrustify.appex/Contents/Resources/uncrustify.cfg

usage

Xcode > Editor > Uncrustify > Format Current Document

Hint: this works only for Objective-C files.

The extension will format the active file.

contributing

Feel free to send bugs or feature requests here.

Pull requests are also welcome!