Xcode插件

古人有云:工欲善其事,必先利其器;

整理一下自己常用的几个插件,以后会不断更新;要使用插件就不得不说包管理工具:Alcatraz

Alcatraz is an open-source package manager for Xcode 5+. It lets you discover and install plugins, templates and color schemes without the need for manually cloning or copying files. It installs itself as a part of Xcode and it feels like home.

install:

curl -fsSL https://raw.github.com/alcatraz/Alcatraz/master/Scripts/install.sh | sh

unstall:

rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin

VVDocumenter

下载地址
一个帮助你快速添加注释的插件,绝对不容错过。
通过///直接产生注释模板,通过Tab键填充即可,相当好用;完美支持OC & Swift;

Xcode插件_第1张图片
效果图.gif

ESJsonFormat

下载地址
一个可以把JSON数据转画为模型属性的插件
使用方法如图:

Xcode插件_第2张图片
效果图.gif

XAlign

下载地址
一个帮你自动对齐代码的插件(简直是强迫症福音啊~)
选中要对齐的代码,按下Shift+command+X,搞定~
小Tips:不要选择全部选择一次性对齐,分段对齐更完美,实在对齐不了的就不要强求了

Xcode插件_第3张图片
效果图.gif

KSImageNamed

下载地址
一个自动检索出图片名的插件
效果图如下:

Xcode插件_第4张图片
效果图.gif

XActivatePowerMode

下载地址
一个用来装逼的插件...写代码也可以很燃..

效果图.gif

ColorSense

下载地址
一个可以直接看到代码设置的RGBA是什么颜色的插件,很好用,墙裂推荐。

效果图.png

XcodeColors

下载地址
在控制台打印出自定义颜色的信息

在pch预处理文件进行宏定义如下:

//-------***** XcodeColors *****--------

#define XCODE_COLORS_ESCAPE_MAC @"\033["
#define XCODE_COLORS_ESCAPE_IOS XCODE_COLORS_ESCAPE_MAC

#if TARGET_OS_IPHONE
#define XCODE_COLORS_ESCAPE  XCODE_COLORS_ESCAPE_IOS
#else
#define XCODE_COLORS_ESCAPE  XCODE_COLORS_ESCAPE_MAC
#endif

#define XCODE_COLORS_RESET_FG  XCODE_COLORS_ESCAPE @"fg;" // Clear any foreground color
#define XCODE_COLORS_RESET_BG  XCODE_COLORS_ESCAPE @"bg;" // Clear any background color
#define XCODE_COLORS_RESET     XCODE_COLORS_ESCAPE @";"   // Clear any foreground or background color

#define ZXLog_Goyakod(frmt, ...) NSLog((XCODE_COLORS_ESCAPE @"bg200,30,10;" frmt XCODE_COLORS_RESET), ##__VA_ARGS__)

//---------******* XcodeColors *****----------

前景颜色效果图:


Xcode插件_第5张图片
屏幕快照 2016-08-15 17.59.49.png

背景颜色效果图:


Xcode插件_第6张图片
屏幕快照 2016-08-15 18.00.06.png

最后附上Xcode插件的文件路径:~/Library/Application Support/Developer/Shared/Xcode/Plug-ins

参考文章

你可能感兴趣的:(Xcode插件)