在iOS开发中,使用快捷键可以让项目开发速度有所提升,代码排版更加清晰等;
- xcode的控制面板
command + 0 (零) 左边面板
command + option + 0 (零) 右边面板
command + shift + Y 下边面板(控制台)
控制面板.png
- 文件切换
command + shift + o (字母) 搜索类
command + control + 向上按键 切换当前类的.h和.m文件
command + shift + j 高亮当前的文件
- 搜索API
command + shift + 0 (数字) 搜索苹果官方API
官方API.png
- 代码折叠
command + option + 向左按键 代码折叠
command + option + 向右按键 代码展开
- 代码注释
command + option + / 方法注释
注释.png
- 使用频率较多的快捷键
command + R 运行
command + B 编译
command + shift + i 编译
command + N 新建