Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/insanoid/CleanHeaders-Xcode
A Xcode Source Editor Extension to sort your header imports and remove duplicates, similar to iSort.
https://github.com/insanoid/CleanHeaders-Xcode
import import-order remove-duplicates xcode-plugin
Last synced: about 1 month ago
JSON representation
A Xcode Source Editor Extension to sort your header imports and remove duplicates, similar to iSort.
- Host: GitHub
- URL: https://github.com/insanoid/CleanHeaders-Xcode
- Owner: insanoid
- License: mit
- Created: 2015-10-07T00:46:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-28T22:19:28.000Z (about 8 years ago)
- Last Synced: 2024-08-03T14:08:09.868Z (5 months ago)
- Topics: import, import-order, remove-duplicates, xcode-plugin
- Language: Objective-C
- Homepage: https://github.com/insanoid/CleanHeaders-Xcode
- Size: 449 KB
- Stars: 93
- Watchers: 8
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios-cn - 官网
README
# 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](https://raw.githubusercontent.com/insanoid/CleanHeaders-Xcode/master/diff_image.png)
## Usage
![Usage](menu_options.png)
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](https://github.com/insanoid/CleanHeaders-Xcode/releases/tag/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 from[xTextHandler-objc](https://github.com/cyanzhong/xTextHandler-objc), thanks for the awesome class.