标签:
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:XAlign/patterns.plist
, and the patterns are based on regular expression.
Tips:
Clone this repo
Then build the XAlign
target in the Xcode project and the plug-in will automatically be installed in~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
Restart Xcode.
curl -fsSL http://qfi.sh/XAlign/build/install.sh | sh
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 no Plug-ins
directory, you should make one.
Restart Xcode.
curl -fsSL http://qfi.sh/XAlign/build/uninstall.sh | sh
or Delete the following directory:
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XAlign.xcplugin
安装
下载后运行工程
开启
Xcode -> Edit -> XAlign
自动对齐快捷键
shfit + cmd + x
git地址
https://github.com/qfish/XAlign
标签:
原文地址:http://www.cnblogs.com/yidoucai/p/5026626.html