zoukankan      html  css  js  c++  java
  • Xcode自定义代码块

    到现在才发现原来Xcode有自定义代码块这么神奇的功能,能简化很多无聊的敲重复代码的工作,真是感叹我怎么才知道!!!
     
    然后我也把自己常用的几个写好了放到的github上:   https://github.com/Phelthas/LXMSnippets
    使用方法:
    将这些.codesnippet文件copy到~/Library/Developer/Xcode/UserData/CodeSnippets/这个目录下面,重启Xcode就可以了~
    注意要完全退出Xcode才行,Xcode下面有亮点可是不行的~
    想想仅用输入几个字母就能出现一行代码的感觉还真是有点爽歪歪呀~
     
    目前支持:
    在@interface 中
    strong  ->  @property (nonatomic, strong) type name;
    weak  ->  @property (nonatomic, weak) type name;
    copy  ->  @property (nonatomic, copy) type name;
    assign  ->  @property (nonatomic, assign) type name;
     
    integer  ->  @property (nonatomic, assign) NSInteger name;
    float  ->  @property (nonatomic, assign) CGFloat name;
    array  ->  @property (nonatomic, strong) NSArray *name;
    string  ->  @property (nonatomic, copy) NSString *name;
     
    delegate  ->  @property (nonatomic, weak) id<xxxDelegate> delegate;
     
    之后用到的再往里面加吧~ 
  • 相关阅读:
    tty & pty & pts
    PageRank
    How to run a terminal inside of vim?
    vimdiff
    svn's tree conflict
    svn's diff command
    符号表分离
    gcc -D
    Options for Debugging Your Program or GCC
    invoking gdb
  • 原文地址:https://www.cnblogs.com/Phelthas/p/5571319.html
Copyright © 2011-2022 走看看