Home

Awesome

XAlign (Ready for Xcode 8+ 🚀)

An amazing Xcode Source Editor extension to align regular code. It can align anything by using custom alignment patterns.

What's XAlign

Here are some example alignment patterns. Of course you can make your own. The pattern file is here: /Source/Patterns.bundle/default.plist, and the patterns are based on regular expression.

Tips:

Align by equals sign

Equal

Align by define group

Define

Align by property group

Property

Todo:

Install on Xcode 8

  1. Download the XAlign.dmg📎 or XAlign.app.zip📎
  2. Open and copy XAlign.app to /Applications folder
  3. Run it then close it.

Usage

1. Enable XAlign

Check <kbd>System Preferences</kbd> -> <kbd>Extensions</kbd> -> <kbd>Xocde Source Editor</kbd> -> <kbd>XAlign</kbd>

help-1

2. Setting Shortcut in Xocde

<kbd>Preferences</kbd> -> <kbd>Key bindings</kbd> -> <kbd>Filter: xalign</kbd>

help-2

Trouble Shooting

Want to help

Special thanks to