ColorSense颜色检测器

下载地址:https://github.com/omz/ColorSense-for-Xcode

 

修改OMColorSense.xcodeproj工程里的OMColorHelper.m文件的内容,实现快捷键功能(control+C)来Insert Color:

1 NSMenuItem *insertColorMenuItem =
2     [[NSMenuItem alloc] initWithTitle:@"Insert Color..."
3                                action:@selector(insertColor:)
4                         keyEquivalent:@"c"]; // modified by Kenmu
5 [insertColorMenuItem setKeyEquivalentModifierMask:NSControlKeyMask]; // created by Kenmu, in order to use shortcut key to access it.
6 [insertColorMenuItem setTarget:self];
7 [[editMenuItem submenu] addItem:insertColorMenuItem];

 

跟VVDocumenter规范注释生成器的安装方式一样:

下载开源工程在Xcode重新编译运行会自动安装此插件,重启Xcode就可以使用了

 

插件设置:

 

使用方式:

 

posted @ 2015-06-08 21:50  KenmuHuang  阅读(2308)  评论(0编辑  收藏  举报
如果您看完本篇博文,觉得对您有所收获,请点击右下角的 [推荐]
如果您想转载,请注明出处(原创内容,请尊重个人劳动成果)
如果您有任何意见或建议,欢迎留言
感谢您的阅读,敬请关注我的后续博客文章