franciscoamado / Sortify

Xcode Source Editor Extension for Sorting Lines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Xcode Source Editor Extension for Sorting Lines


Languages

Language:Swift 100.0%