Skip to content

200895045/XAlign

Repository files navigation

XAlign

a useful Xcode plugin to align regular code. it can align xnything with any format as u want.

What's XAlign

there are some example format patterns below, of course, you can make your own. the example pattern file is under the main dir. Just try it yourself.

1. Align By Fisrt =

Equal

2. Align By Define Group

Equal

3. Align By Property Group

Equal

Install & Update

  1. Terminally

     # install
     $ curl github.so/XAlign/build/install.sh | sh
    
     or
    
     # update
     $ curl github.so/XAlign/build/update.sh | sh
  2. Manually

  3. Download this package XAlign.tar.gz

  4. then unpackage it, copy or move the XAlign.xcplugin to follow path: sh ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ tips: Quick go in finder cmd+shift+g; if there's no dir Plug-ins, you should make one.

  5. then restart your Xcode.

Uninstall

$ curl github.so/XAlign/build/uninstall.sh | sh

Usage

Where in ur Xcode

Xcode -> Edit -> XAlign 

Auto Align Shortcut (default)

shfit + cmd + x

You can setting in the setting panel, Xcode -> Edit -> XAlign -> Setting.

Trouble-Shooting

Not the end

I want to write more, but i am sleepy zzzzz. :)

TODO:

  • how to customize ur align pattern
  • my xcode plugin template
  • etc.

About

代码对齐

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 99.0%
  • Shell 1.0%