An amazing Xcode plugin to align regular code. It can align anything by using custom alignment patterns.
Here are some example alignment patterns. Of course you can make your own. The pattern file is here: main/main/patterns.plist
, and the patterns are based on regular expression.
Tips:
- You may not like the alignment style below, try it yourself or tell me at the [Issues]. :)
- There is no need to align all codes at a time when they are complicated, try to align by group which the codes are more similar in.
- 对齐不需要一次全部对齐,可以分组多对几次,那些等号差的太远的就别让它参与对齐了。
- 默认对齐的风格不是你喜欢的,可以自定义,或者提个 Issues。
- Support Xcode4.
- More easy to customize alignment patterns.
# install
$ curl github.so/XAlign/build/install.sh | sh
or
# update
$ curl github.so/XAlign/build/update.sh | sh
-
Download this package XAlign.tar.gz
-
Unpack it, copy or move the
XAlign.xcplugin
to the following path:~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/
Tips: To quickly go to Finder type
Shift + Cmd + G
. If there is noPlug-ins
directory, you should make one. -
Restart Xcode.
$ curl github.so/XAlign/build/uninstall.sh | sh
Xcode -> Edit -> XAlign
Shift + Cmd + X
You can choose the shortcut in the Settings panel, Xcode -> Edit -> XAlign -> Setting
.
-
They provide awesome design and development works continues to help the open-source community even better.
-
BeeFramework is a new generation of development framework which makes faster and easier app development, Build your app by geek's way.