這里只介紹一些默認的,如果需要自定義的自己在Xcode的偏好設(shè)置去修改
1.代碼上下左右移動:
上移:command+option+[
下移:command + option + ]
左移:command + [
右移:command + ]
2.切換.h .m文件
command + control + 上下鍵
3.切換工程導(dǎo)航欄
command + 1(2,3,4,5,6,7,8,9)
4.顯示/隱藏工程導(dǎo)航欄
command + 0
5.顯示/隱藏工具面板
command + option + 0
6.快速切換到搜索框
command + shift + F
7.快速查找方法
command + shift + O
8.運行項目
command + R
9.清理項目
command + shift + K
10.編譯項目
command + B
11.停止運行項目
command + .
12.斷點調(diào)試
F6單步調(diào)試、F7跳入,F(xiàn)8繼續(xù)
13.打開文檔
command + shift + 0
12.獲取快速幫助
在某個地方,比如UIViewController處按住
option + 左鍵
,可看到相關(guān)信息
13.工程導(dǎo)航欄快速跳轉(zhuǎn)到當前文件的地方,有的時候我們看父類或者三方文件的時候,要去找它文件所在地的時候,總會去看上面的路徑然后去找,其實可以通過
command + shift + J
工程導(dǎo)航欄即可看到