Lines Sorter
![@V8tr](https://img.shields.io/badge/contact-@V8tr-blue.svg?style=flat)
Lines Sorter is an Xcode Source Editor extension that makes it easy to keep your import statements and long code lists organized, uniform and easy-to-read.
Features
- [X] ⚒ No longer hack your Xcode to install custom plugins.
- [X] ⌨️ Sort and tidy import statements with a single shortcut.
- [X] 📃 Sort any selected lines of code: long constants definitions, enum cases, localized strings etc.
- [X] ⚡️ Fast, tested, secure.
Examples
Sort Imports
![Lines Sorter Xcode Extension - Sort Imports Demo](https://github.com/V8tr/LinesSorter-Xcode-Extension/raw/master/Design/sort-imports.gif)
Sort Selected Lines
![Lines Sorter Xcode Extension - Sort Selected Lines Demo](https://github.com/V8tr/LinesSorter-Xcode-Extension/raw/master/Design/sort-selected-lines.gif)
Installation
- Download latest LinesSorter package from the Releases.
- Copy LinesSorter to your Applications folder.
- Launch LinesSorter once. You can close it immediately afterwards.
- Go to System Preferences > Extensions > Xcode Source Editor > select LinesSorter
![Lines Sorter Xcode Extension - Installation](https://github.com/V8tr/LinesSorter-Xcode-Extension/raw/master/Design/installation.png)
Setting Hotkey in Xcode
- Open Xcode
- Go to Xcode > Preferences > Key Bindings
- Type 'lines sorter' in search field
- Assign ⌃ + ⌘ + ⎇ + I to Sort Imports command
- Assign ⌃ + ⌘ + ⎇ + S to Sort Selected Lines command
![Lines Sorter Xcode Extension - Hotkeys](https://github.com/V8tr/LinesSorter-Xcode-Extension/raw/master/Design/hotkeys.png)
Feedback
Pull requests, issues and suggestions are warmly welcome.
Feel free to contact me @V8tr on Twitter.