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!