Skip to content

insanoid/CleanHeaders-Xcode

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

CleanHeaders

An Xcode plug-in to format your import headers in a systematic manner. It simply removes duplicates, spaces and sorts them alphabetically making it much more easier to read and avoid duplicate imports. Works with @imports, #include, #import and import.

Preview

Usage

Usage

Select the option from Editor > Clean Headers > Sort Headers. You can add shortcuts from Xcode preferences.

Please run sudo /usr/libexec/xpccachectl and restart your Mac before running the extension if you are on macOS 10.11 El Capitan.

TODO/Limitations

  • Missing tests

Support for Alcatraz (Deprecated)

Install the older version v1.0.0.

Alternatively you can also clone the release, build and run CleanHeaders, restart Xcode.

Credits

I am using some helper functions to deal with the filtering out source text fromxTextHandler-objc, thanks for the awesome class.

About

A Xcode Source Editor Extension to sort your header imports and remove duplicates, similar to iSort.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published