Xcode Source Editor Extension for Sorting Lines
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
Sortify.xcodeproj
Sortify
SortifyExtension
SortifyTests
.gitignore
README.md

README.md

Sortify

Xcode Source Editor Extension for Sorting Lines

This was built as a prototype to test Xcode Extensions.

Installation

Build

Using Xcode 9+

  1. Download the source code.
  2. Open the Sortify.xcodeproj and run the SortifyExtension target, choosing Xcode as the host application.

This is a temporary installation as it will only work when running the project.

Zip

  1. Download the latest release Sortify.zip
  2. Open the Sortify.app, which will add the Extension to Xcode.
  3. (Optional) Move the Sortify.app to the Applications folder.

You can validate if the Extension is enabled in System Preferences >> Extensions

Usage

  1. Select the lines that will be sorted in the open file
  2. Xcode >> Editor >> Sortify >> Sort Selected Lines

Sortify in Xcode

Known issues

  • Simple text sorting
  • Text needs to be aligned to work properly

TODO

  • Maybe add import sorting

Acknowledgments

App Icon Arrow made by Dave Gandy is licensed by CC 3.0 BY

All the rest is free.

Contributing

Open an issue or a Pull Request. All help is appreciated.