Xcode Top Ten Plugins

Source: Internet
Author: User

This article roughly sorted out the use of some of the plug-ins used by their feelings (it is not good use). Before that, a simple two-piece plug-in notes, know that can be ignored.

1, Alcatraz

Similar to the cocoapods for managing third-party libraries, the management plug-in also has a Alcatraz.

The method of installation is also very simple, if you have not previously installed that execute the following instructions

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

If you have previously installed but the latest version of Xcode is not available, then uninstall the old one and install the new one.

The Uninstall method is:

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

Note: Maybe not everyone used Alcatraz, but usually like on GitHub download a run and then load bundle this method, if a lot of plug-ins have been installed before, now just use Alcatraz is no problem, The installation before installing Alcatraz will also be automatically integrated. Don't worry.

And even if you use this tool, Xcode also requires a reboot to apply the plugin, and it's not going to save this step.

2. Update Plugin

Whether you are using the direct download Zip method to install plug-ins or plug-ins installed with Alcatraz if the plug-in itself does not have the latest Xcode support, then after your Xcode update a version, the Xcode plugin will expire. The problem is that the latest version of Xcode is not dvtplugincompatibilityuuid with the plugin's support list.

First get, input in terminal

1 defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

Then follow the directory below /library/application\ support/developer/shared/xcode/plug-ins

Find the plugin list, select the corresponding plugin to display the package contents, and open the Info.plist file to add the latest UUID in this array

There are even more sharp ways to do this:

1 find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add UUID

The last side of the UUID is the one previously acquired.

Recommended Plugins

The following into the topic, said I like to use the plug-in, basically a use of experience it. All attached to the connection, no action map to avoid too messy, basic connections in GitHub.

1.vvdocumenter-xcode three-bar add a document comment

Https://github.com/onevcat/VVDocumenter-Xcode

All plugins in this is my earliest use should also be ranked first. Use is also very convenient but for a long time may find that automatically generated comments are each parameter and return value will pop up a block, and our daily development of most of the parameters and return values are a sight, do not need to label each, which makes me every time I hit three bar is also to manually delete part, more trouble.  If the author can provide the next one is existing, and the other is only description, then I will be very convenient. Or a more burning guess, is to judge whether a parameter is a basic data type or a special type on an existing basis, and a special type of argument generates a comment block. Return value if it is instancetype it is not necessary to generate comment blocks, or to determine if the parameter name is a common word (time) or a compound word (categoryID), it may be better to not generate comments for common words. Perhaps I think more, anyway this plugin is necessary, not to mention now even swift support.

2. Scxcodeminimap on the right shows the small map

Https://github.com/stefanceriu/SCXcodeMiniMap

This is similar to the sublime feature, which is very useful. And the code mini-map on the right provides a lot of configurable places, and highlights the macros and Notes sections, where clicking anywhere in a small map automatically scrolls to this point. This can be useful when you write a letter that says you don't know where you are when some kind of code is very long. (If you often use pragma mark then you don't say that)

3.FuzzyAutocomplete Code Completion support Fuzzy query

Https://github.com/FuzzyAutocomplete/FuzzyAutocompletePlugin

Code completion can not be knocked from the beginning, as long as you remember a particular word can match. And there are several prefixes in the project, such as our previous events, MT prefixes have the MTB prefix, this even if your prefix is missing as long as the back face can also match to. Of course there is a disadvantage is that you knock a very common method below will match a long string, looking a bit redundant and Xcode will compare cards, and knock out is good if you want to delete a character back to delete the Xcode,crash may appear (perhaps with some other plug-in conflict, I misjudged him). You don't have to look at a person's liking, because Apple has a lot of weird API, such as Rect he is cgrectmake, but to range he is nsmakerange with this plugin will not be his pit.

4.KSImageNamed automatically display picture thumbnails when using pictures

Https://github.com/ksuther/KSImageNamed-Xcode

is also very brutal a function, in the development of our image name are similar to Fb_poinum_high, with this plugin to hit the prefix can see the corresponding batch of picture thumbnails and then choose very convenient. Shortcomings also have, that is already knocked out of the code to see the image thumbnail must first delete the imagenamed and then re-knock to see the thumbnail, if the @ "Fb_poinum_high" in the name of the image can be seen in the picture list is better.

5.HOStringSense can write nsstring in popup box, see and receive

Https://github.com/holtwick/HOStringSense-for-Xcode

There are several times before the need to write a newline msg, sometimes not allowed, with this plugin very convenient. In the pop-up box, what you see is what you receive. It also shows the length of the string when the cursor points to the string, which I also use very often.

6.GitDiff simple and intuitive marking of the site of this commit modification

Https://github.com/johnno1962/GitDiff

This plug-in is in the Enterprise app development, the use rate is very high, the effect is very good. M,d,a,a+ in the list of coordinate files,? You can quickly show which files you have modified. But accurate to the file of this plugin can be very good to display, the default is the new location to display green, the location of the changes to display red. Of course, these are also configurable. (although there are many ways Xcode or terminal can compare diff but not so simple and intuitive)

7.xvim The edit page of Xcode to support vim operation

Https://github.com/JugglerShu/XVim

After introducing this plugin, the cursor on the normal code page of Xcode will become the box inside vim, and the level of the urn that is familiar with vim command should especially like this plug-in, DD delete a line directly, DW delete a word used is really cool. It took a while to find that the original code changes to Xcode (which can also be said to be intrusive) is not big, because by pressing S is the editor Ah, and Xcode is the same as any function of a lot, press ESC and switch to vim very sharp. In short is particularly useful, and see GitHub Point Star also has 3000+ bar, and constantly someone mention issue, now is very perfect.

8.XAlign offers a variety of automatic alignment schemes

Https://github.com/qfish/XAlign

This plugin implements many kinds of automatic alignment functions, very brutal. Supports auto-alignment of "=" and "@". After installation, quickly put the project all involved in the place to use the shortcut key to knock on it. If you say so, the braces and indentation are not supported automatically.

9.bbudebuggertuckaway Debug View Auto-Hide when tapping code

Https://github.com/neonichu/BBUDebuggerTuckAway

Provides micro-operation plug-in, simple function, but very practical. The person who knocks the code quickly, or when the bug is changed, run and then debug a few lines this operation will be repeated several times. This is the time to learn how much surprise this humble feature brings.

10.backlight-for-xcode highlighting the row being edited

Https://github.com/limejelly/Backlight-for-XCode

is also a micro-operation plug-in, the function is simple, is the line of code you are editing highlighted. And this color and display scheme are configurable. This plug-in has two great advantages one is to find the code on the scroll wheel when there is a direction to know where the method you are editing, and the other is a line of code is long broken lines into two or three lines but actually a line of code, then this lump will be highlighted. The disadvantage is that the author may not set a good default value, you just installed after the discovery of no effect, to go to the menu to open the function to be effective and sitting set the default high color is white =. =

11.Cocoapods-xcode-plugin pod-related operations can be performed in the Xcode menu

Https://github.com/kattrali/cocoapods-xcode-plugin

The general app should rarely be modified after the pod has stabilized, but the library provides a great feature to implement pod install, create new/Modify Podfile, and create/modify Podspec files. People accustomed to the terminal iterm may not adapt, accustomed to use the source tree people may find this plugin very cool ~

12.ColorSense Input Color when there is a swatch for you to choose

Https://github.com/omz/ColorSense-for-Xcode

When using Colorwithrgb, you can point out a color selection box to choose the color directly, but this function in the use of wonderful or enterprise-class app is not very useful, because it is a project has visual specifications, should be written a specific macro, even if there is no visual specifications, At least there is an RGB (R,G,B,A) this macro bar. [Uicolor colorwithred:233/255.0 green:213/255.0 blue:12/255.0 Alpha] This kind of code is still very ugly. If it is a test demo or the like with this plugin can.

The code is automatically generated when the 13.SCXcodeSwitchExpander switch is enumerated

Https://github.com/stefanceriu/SCXcodeSwitchExpander

If you have an enumeration in your project that is very handy, it automatically generates all the possibilities, and each contains blocks of code that you can directly tab through. Although the usage is not particularly high, but it is very convenient when used. I used to be lazy when I write case:1 case:2 now can go to the norm.

14.DerivedData exterminator One-click Delete derived Data

Https://github.com/kattrali/deriveddata-exterminator

After using this plugin, there are a few more actions in the View menu, you can delete derived Data with one click. Sometimes in debug, start diagram, launch Screen,navgationbar appearance, the like function may need to delete derived data to debug frequently. The previous scenario should be to open Xcode preferences locations inside to remove, now convenient a lot. The disadvantage is to delete the project Derived data and delete all Derived data directly together, the hand slipped on the wrong point. Some people's computer performance is slow, project big you take another project of derived data also deleted after re-build a bit too slow. And remember that there was a gadget that was able to display the main directory of a running project in Find and debug the data cache, which is even better if it integrates this functionality.

Xcode Top Ten Plugins

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.