Xcode奇淫巧技(一)——常用插件

Xcode奇淫巧技(一)——常用插件

工欲善其事必先利其器,来谈一谈Xcode插件以及快捷键。

Tips:
插件均从Alcatraz摘选,具体操作链接为准。快捷键冲突时请自行改键!
Xcode 8 恢复插件,使用之前请先备份Xcode,安装插件后不可打包上传Appstore,请谨慎使用!

插件

  • 插件管理Alcatraz

    快捷键:⌘+shift+9
    

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.


A simple plugin for Xcode to adjust font size without going into Settings → Fonts & Colors and changing each source type.
Simply hit ⌘ + or ⌘ - and all fonts will be adjusted. Plugin respects different font sizes per each syntax type.


AllTargets is a plugin for Xcode. The plugin intends to auto select targets depending of the selected configuration when you add files to the project.


A simple Xcode plugin to generate implement code for the selected method, selector and const string, currently, only support objective-c.


Xcode plugin for fixing bug in Xcode 6+: if you input “@”, auto completion does not work, you still need to press “ESC” to show the auto completion list.


This is a convenient and fast approach to create property. You do not need to type @property and nonatomic when you declare a property.


Quickly import your headers on the fly without having to manually go to the top of your file and type the import statement.


Xcode plugin for C Style Comment(uncomment) /**/


An Xcode plug-in to format your import headers in a systematic manner. It simply removes duplicates, spaces and sorts them alphabetically making it much more easier to read and avoid duplicate imports. Works with @imports, #include, #import and import.


A plugin for Xcode that shows colours and allows you to modify them. It works for both UIColor and NSColor in Swift and Objective-C.


With thanks to the genius who suggested this plugin, GitDiff displays deltas against a git repo in the Xcode source editor once you’ve saved the file. To use, copy this repo to your machine, build it and restart Xcode. Differences should then be highlighted in orange for lines that have been modified and blue for new code. A red line indicates code has been removed. Hover over deleted/modified line number to see original source and after a second a button will appear allowing you to revert the change.


This plugin is used to autocompletion enum members for Objective-C


Highlight the String which is same to selected string.


Injection for Xcode is an Xcode plugin (available via Alcatraz) or AppCode that dynamically inserts new Swift / Objective-C code into a running app in order to speed up your build process. It does this without making any changes to your project.


IntelliPaste is an Xcode plugin that makes copy-pasting methods and RGB colors easier.


  • KSHObjcUML

     快捷键:Select Product->Objc-UML or Swift-UML
    

KSHObjcUML can show oriented graph of dependencies between Objective-C and Swift classes in your project. This plugin is based on objc-dependency-visualizer.


Can’t remember whether that image you just added to the project was called button-separator-left or button-left-separator? Now you don’t have to, because this will autocomplete your imageNamed: calls like you’d expect. Just type in [NSImage imageNamed: or [UIImage imageNamed: and all the images in your project will conveniently appear in the autocomplete menu. You’ll even get a handy preview of the image you’re about to select.


SCXcodeSwitchExpander is a small Xcode plugin that expands switch statements by inserting missing cases.


Writing documentation is so important for developing, but it is really painful with Xcode. Think about how much time you are wasting in pressing ‘*’ or ‘/’, and typing the parameters again and again. Now, you can find the method (or any code) you want to document to, and type in ///, the document will be generated for you and all params and return will be extracted into a Javadoc style, which is compatible with appledoc, Doxygen and HeaderDoc. You can just fill the inline placeholder tokens to finish your document.


  • XAlign

     快捷键:Shift+Cmd+X
    

An amazing Xcode plugin to align regular code. It can align anything by using custom alignment patterns.

猜你喜欢

转载自blog.csdn.net/a184251289/article/details/50813843
今日推荐