Xcode相关常用快捷键搜集

时间:2024-04-15 15:14:43

command + L:  跳转到指定行    

control + i:  格式化代码

command + control + 上/下 在*.h和*.m之间切换.

command + control + 左/右 Go Back / Go Forward

command + control + w   关闭当前打开的文件.

command + shift + o 快速查找

command + option/alt + 左、右  折叠、展开鼠标指针当前位置代码段

command + option/alt + shift + 左、右  折叠、展开当前文件内所有代码段

command + shift + j “Navigate > Reveal in Project Navigator”左边工程导航视图中显示当前打开的文件目录位置。





编译相关:

command + shift + k clean

command + b         build

command + r         run

command + .         stop