rafsouzap / LinesSorter-Xcode-Extension

Xcode Extension that helps you keep your import statements and long code lists organized and uniform

Home Page:http://www.vadimbulavin.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lines Sorter

Lines Sorter

Travis Status Swift 4.1 @V8tr

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

  • βš’ No longer hack your Xcode to install custom plugins.
  • ⌨️ Sort and tidy import statements with a single shortcut.
  • πŸ“ƒ Sort any selected lines of code: long constants definitions, enum cases, localized strings etc.
  • ⚑️ Fast, tested, secure.

Examples

Sort Imports

Lines Sorter Xcode Extension - Sort Imports Demo

Sort Selected Lines

Lines Sorter Xcode Extension - Sort Selected Lines Demo

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

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

Feedback

Pull requests, issues and suggestions are warmly welcome.

Feel free to contact me @V8tr on Twitter.

About

Xcode Extension that helps you keep your import statements and long code lists organized and uniform

http://www.vadimbulavin.com/


Languages

Language:Swift 100.0%