Add IOS Code Snippets!

Source: Internet
Author: User

Description, code snippet is convenient and fast input fragments, such as do-while, switch and other system statements, these system statements are code snippets, quickly enter some common code statements, you can write these statements into code snippets!

Example:

We often need to print some elements when we are programming, so we can make the print nslog into a code snippet.

1, first enter the printed code:NSLog(@ ""); Then the mouse to select the entire statement, so that the code is selected, the mouse to move to the code to hold the left button, the mouse will become an arrow state, and then directly dragged into the code snippet inside.

2. Code Snippet location: Lower right corner of program

3, drag the code into the code snippet inside will automatically pop up the code snippet edit view

4, the first is the title: Then there are some other properties, shortcut keys are completion Shortcut: I set the shortcut key to SS; (the print statement will appear after the direct input ss)

5, NSLog need some parameters, I set two editable parameters, the parameter input form is:< #参数名 #> the angle brackets and the # symbol input will automatically become editable parameter names.

Then we encode the appropriate input shortcut key SS will appear print statements, without nslog input a large segment.

Add IOS Code Snippets!

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.