下载地址: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就可以使用了
插件设置:
使用方式:
时间: 2024-09-30 11:56:01