#QLCodeSnippets
I have accumulated lots of code snippets since 2 years ago.
Today i share it to you.
##Introductions
In the files:
- whose name has a prefix of
OC
defines a code snippet for Objective-C. - whose name has a prefix of
SW
defines a code snippet for Swift. - whose name has a prefix of
Define
defines a code snippet as a global micro such as color, screen size... ...
And you can also add something yourself.
##Usage Now you can check it out and move it to your Xcode UserData folder.
- you can open the preferences of the Xcode, in the tab named
Locations
, you can find some open-folder guide button. click one of the them and it will show you a path in the finder. Assumed you pressed the button belowDerivedData
, so ,the finder will like this:Open the folder named
UserData
at the same level ofDerivedData
, and you can move the file cloned floder namedCodeSnippets
to this path. if here already have the same name floder, copy the files in theCodeSnippets
to the folder.
OK, We make it. So, restart your Xcode and Open a project, type define
, what did you see? Ohh?
If you have something good, I'm glad you can let me know. Thanks.
写成英文仅仅是为了锻炼自己的英语,有不对的地方欢迎指出.谢谢.