xcode 使用技巧总结
键盘快捷键
- 删除一行
command + backspace
- 删除一个单词
option + backspace
C++
- 在.hpp的方法前一行加入以
//!
开头的注释,能够在智能提示下一栏查看该提示说明
使用要点://!
例子:
class Video{
...
public:
//! The intro of function getFileName is here :)
char *getFileName() const;
...
}
结果
文件标签
在xcode界面左侧的 Project Navigator 一栏中,会在文件名后出现一些字母,如下图所示⬇️
它们的规范名称称为“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