工欲善其事 its prerequisite's Xcode efficient plug-in and comfort matching

Source: Internet
Author: User

Powerful Xcode with efficient plugins will make your development more productive. Go straight to the chase.

Xcode Plugin Installation Method:

1. GitHub Download the plugin and run it again with Xcode, then restart Xcode.

2, install plug-in management Alcatraz, through which to install plug-ins do not need to GitHub to download plug-ins to run, unified management plug-in, save time and efficient and intuitive

A little reminder: After installing the plugin need to restart Xcode,xcode7 after reboot Xcode will pop up a prompt to ask whether to load the plug-in, select load bundle loading


Load the installed plug-in

if you accidentally clicked the Skip Bundle. In the Mac terminal, enter the command :

Defaults Delete Com.apple.dt.Xcode dvtpluginmanagernonappleplugins-xcode-7.1 (enter the corresponding Xcode version number here)

Then restarting Xcode will re-prompt to allow the plugin to be loaded.

After upgrading the Xcode version, the original installed plugin fails, the workaround is shown below:

The solution to install the rack is invalid after Xcode upgrade version

Installation and use of Alcatraz:

Click on the link above to jump to the GitHub homepage, installation method at a glance, open the terminal, enter the code to return:

Curl-fssl Https://raw.github.com/alcatraz/Alcatraz/master/Scripts/install.sh|sh

or download the code directly, open it with Xcode, stop and restart Xcode after it runs successfully.

Then there is the plugin management Package Manager under Xcode's Windows menu:


Plug-in Management switch

Open plug-in management, such as:


Plug-in Management interface

There are three main categories: Plugins (Plug-in), color themes (color), templates (code template). Click to toggle the download type. The most commonly used is to download, uninstall plug-ins.

With the search at the top, quickly find the plugin you want, then click Install. Until the Green Install button turns red Remove the installation is complete and the Xcode is restarted.


Search Plugin


Install plug-ins Some common efficient plugins: all support to the latest version of Xcode Fuzzyautocompleteplugin

If Xcode can only keep a plugin, then I choose it! This is a code fuzzy matching and intelligent completion plug-in, only need to remember a method of one or two words, you can match to the desired method. In particular, the implementation of the System Agent, is simply a tool to write code Ah, there are wood. Without it, I could not write the code well. Below the dynamic diagram feel, if not it, to play a few more words


Use of fuzzy plugins ksimagenamed

When writing code, it is essential to use a picture. This plugin can automatically pop up all the icons when loading images using [UIImage imagenamed:] mode, which will be visualized for you to choose from. Very efficient


Ksimagenamed use Xcodeboost

has been very fond of a plug-in, but the author has not been updated for a long time. However, the latest version of Xcode is available for pro-test. This plugin can define the following functions:


Boost shortcut keys

You can cut, copy, paste, and delete this line of code just by resting your cursor in a row. Often used to

Select several methods and then copy their declarations to the head file, which is useful when writing custom view and libraries.

Highlighting features, highlighting the current page selected text, code troubleshooting is very useful, but not recommended to use this plugin to achieve highlighting, I test the bug, using highlighting will cause Xcode often crashes.


Check the method to copy its declaration

Vvdocumenter

A Java annotation-style plug-in written by Meow, just need to enter three slashes///on a method or enumeration to generate corresponding comments, very convenient


Add Comment Peckham

This is a code, anywhere control+command+p fast add #import "XXXX" plug-in, quite save time. When you need to use a class, you find that the import has not come in, not sliding to the top Add. With this plugin, no longer have this annoyance. This is a lot of plug-ins, choose this because it is relatively stable, and has not yet encountered with a plug-in conflict


xalign

If you are like me, there is code neat obsessive compulsive Disorder, maybe this plugin is what you need. The code is automatically aligned according to the equals sign "=". or alignment properties, you can also customize the alignment rules.


Attribute Alignment
rtimageassets

Only need to put on the imageasset inside the @3x picture, automatically generate @2x pictures, of course, can also be @2x to generate @3x pictures. Later called the designer to the @3x icon on the line, save time and effort


Auto-Generate @2x icon

CocoaPods

Update pods of a plug-in, than the use of terminal to update to be more convenient and fast. You can also check for any pods that need to be updated. Updated information will be printed in the Xcode console


Mclog

Add a search box to the console to quickly search through the contents of the console printout. Very convenient when commissioning.


Added a search box

Dxxcodeconsoleunicodeplugin

Displays Unicode characters in the console. The data returned in the background in Chinese is usually displayed in the console Unicode characters, want to see what is returned is very egg ache. With this plugin, how much is saved?


Tick Enable

Before enabling:


Enable pre-console printing information

When enabled:


Enabling post-Console printing information Synx

Strictly speaking, this is not the Xcode plugin, but it is a tool I have to install. This tool can quickly and accurately generate the corresponding entity directory under the project's Real folder according to the file directory in the Xcode project. Ask me why I want to generate a real file directory? Because the subsequent maintenance and find convenient.

Here are some pictures from Synx GitHub to feel the following:


Project group File directory

Terminal execution Synx
Comparison before and after finishing

As you can see, before finishing, although Xcode's group directory is canonical, the files under the project folder are stacked under a folder. After finishing, the files under the project folder already correspond to the group directory one by one.

Installation and use please refer to GitHub, written very clearly, believe that this English is not easy to pour intelligent program Ape!

A little reminder:

1. When using, enter "Synx project name. Xcodeproj" in the terminal. After you enter the Synx space, you can open the project folder and drag the. xcodeproj file directly into the terminal, and then enter to perform the collation. If you use Cocoapods in your project, the. xcworkspace file is generated. However, be sure to drag into the. Xcodeproj, not xcworkspce, when sorting through synx files.

2. It is best to back up your code before using Synx to prevent error conditions. (I use one of the mistakes in history)

3, if the project uses Cocoapods, finishing the first time build once. See if there is an error. If the pods error occurs after finishing, re-execute the pod install installation pods.

The above is my must install several Xcode plugin. Here are a few of my usual but not the necessary plug-ins, simply introduced under, no longer tired:

Bbufullissuenavigator

Function: Displays the complete error message in the left error navigation bar, no longer an omitted error message

Bbudebuggertuckaway

Function: Automatically hide the bottom debug box when writing code

Zlgotosandboxplugin

Function: Quick jump to the program sandbox, do localization store in sandbox when super easy to view

Lin-xcode6

Function: Do internationalization of the weapon, do not open the. strings file, pop the edit box directly in the code

Scxcodeminimap

Function: Open a code thumbnail on the right side of the code area to quickly navigate to the code snippet without a mouse.

Note that this plugin is above Xcode7 and will cause Xcode to crash when a fallback cursor deletes the code. Do not know whether the plugin itself or the Fuzzyautocomplete plug-in conflict, or with some other plug-in conflict, I did not go to test, in short, after Xcode7, I did not use this plugin anymore. If you know the cause of the crash, hope to tell, this plugin is very useful

All the plugins I installed:

Go to the Installation plugin folder, desktop Press the shortcut key command+shift+g, copy

~/library/application Support/developer/shared/xcode/plug-ins

To.


The directory where the plug-in Xcode Color

Alcatraz can download a lot of colors above:


Download color scheme

But I still love the apple green background color. Because the black or black gray background to see a long time to feel tired eyes, white background too bright and bad for the eyes. I still prefer the background of Apple Green, although I do not know Apple green eye is true, but at least I think long time to write code, Apple green background to look at the eyes more comfortable than other background (also may be the heart effect), anyway, I have been using their own apple green color:


Apple green color

You can save your favorite color (. dvtcolortheme file), and the next time you copy it directly to your Xcode's color folder you can use it.

Go to the matching folder (the directory does not exist by default, if you want it to appear, you can add any color scheme in the fonts & color. ), Desktop Press the shortcut key command+shift+g, copy

~/library/developer/xcode/userdata/fontandcolorthemes

To.

Well, the Xcode plugin and the color palette are shared here. If you have a good plugin can also reply in the comments, thank you to share!



Wen/ronda (author of Jane's book)
Original link: http://www.jianshu.com/p/018e770938c2
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".

工欲善其事 its prerequisite's Xcode efficient plug-in and comfort matching

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.