Xcode9 常用快捷键

方法注释

Command+ Option + /

代码折叠

局部折叠(折叠一个函数) : Command+Option+Left/Right
全局折叠(折叠当前文件下的全部函数) : Shift+Command+Option+Left/Right
折叠注释块:(/* */之间的文字) : Ctrl+Shift+Command+Left/Right
当前文件的所有方法 : Command+Option+Shift+Left/Right

格式化代码

选中要格式化的代码:Control+I

你可能感兴趣的:(Xcode9 常用快捷键)