Code Snippets Library Based on Xcode development skills

Source: Internet
Author: User

 @property (nonatomic, copy) NSString * @property (nonatomic, copy) NSString * @property (nonatomic, copy) NSString * @property (nonatomic, copy) NSString *operateType;

@property (nonatomic, copy) NSString
Code Snippets

This is Code Snippets, which aims to enable programmers to input frequently-used Code Snippets as quickly as possible to improve programming efficiency. This function is introduced from Xcode4. We can set the display Code Snippets in the following places:

There are many Xcode code snippets. The switch in the above example is one of them. Double-click a specific Code Snippet to view the details of the Code Snippet. Click the Edit button to view more information.

Code Snippets creation process.

Code Snippets.

 

@property (nonatomic, copy) NSString *<#name#>;

 

Code Snippets. Code Snippets is created in the Xcode area. After the creation, the effect is as follows: [attribute description ]:
  • The title of the Code Snippets;
  • Description text of Code Snippets;
  • Code Snippets platform with three options: IOS/OS X/All
  • Code Snippets
  • Code Snippets shortcut, such as sw used in the second part of this article to write the switch Code segment. Here, set the shortcut for Attribute setting to pc
  • Code Snippets, such as all locations, and the header file is medium. Of course, you can add multiple supported locations.
  • Code Snippets effect preview.
Code Snippets: Take the defined pc attribute Code Snippets as an example: Find the Code Snippets that we need to use, and drag the Code Snippets with the left mouse button to the appropriate position.

By default, Code Snippets is stored in the following directory:
~/Library/Developer/Xcode/UserData/CodeSnippets   
Code Snippets backup can also be copied directly to different computers for use, so there is no pressure to collaborate between multiple computers.

 

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.