开源地址:https://github.com/qfish/XAlign/

 

一、解压commad+b运行后关闭xcode

二、在终端输入:defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID 查找xcode7的UUID

三、

1)点击Finder前往目录: ~/Library/Application Support/Developer/Shared/Xcode,

2)找到 XAlign 插件显示包内容,

3)进入 Contents 文件夹 打开 Info.plist;

4)找到:DVTPlugInCompatibilityUUIDs,添加New item并将之前拷贝的字符串copy; 

四、现在完全关闭Xcode ,再重启Xcode时会提示“Load bundle”、 “Skip Bundle”,这里必须选择“Load bundle”。

五、重新运行项目,使用command+shift+x  就能对齐代码了

posted on 2016-01-07 11:47  墓厄  阅读(277)  评论(0编辑  收藏  举报