xcode 使用技巧总结

xcode 使用技巧总结


键盘快捷键

  • 删除一行 command + backspace
  • 删除一个单词 option + backspace

C++

  • 在.hpp的方法前一行加入以//!开头的注释,能够在智能提示下一栏查看该提示说明
    使用要点: //!
    例子:
class Video{
    ...
public:
    //! The intro of function getFileName is here :)
    char *getFileName() const;
    ...
}

结果
智能提示说明


文件标签

  • 在xcode界面左侧的 Project Navigator 一栏中,会在文件名后出现一些字母,如下图所示⬇️

    xcode文件标签

    它们的规范名称称为“SCM status”,SCM即Source Control Manager,用于显示当前文件与代码仓库中相应文件的差异和改动。
    其中,各字母的具体含义如下:

M = Locally modified
U = Updated in repository
A = Locally added
D = Locally deleted
I = Ignored
R = Replaced in the repository
– = The contents of the folder have mixed status; display the contents to see individual status
? = Not under source control
参考资料:http://stackoverflow.com/questions/7754850/symbols-meaning-aside-class-name-in-xcode

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值