1、快捷鍵
Command + Shift + j 表示:顯示當(dāng)前文件,在導(dǎo)航攔中的位置
Command + Shift + o 表示:搜索當(dāng)前項(xiàng)目中的文件
Command + L 表示:搜索行數(shù),直接跳轉(zhuǎn)對(duì)應(yīng)行的位置
Command + Option + [ 表示:向上移動(dòng)該行(可多行)
Command + Option + ] 表示:向下移動(dòng)該行(可多行)
Command + Option + 左/右 標(biāo)示:折疊打開一個(gè)函數(shù)
Command + Control+ 左右箭頭 表示:返回下一個(gè)和上一個(gè)文件
Command + Control+ 上下箭頭 表示:切換頭文件和源文件
Command + Control + J 表示:跳轉(zhuǎn)到變量的定義文件
Command + Control + 0 表示:跳轉(zhuǎn)到官方文檔
Command + [ 表示:左移代碼塊
Command + ] 表示:右移代碼塊
Ctrl+T 表示:交換光標(biāo)左右兩邊的字符
Ctrl+D 表示:刪除光標(biāo)右邊的字符
Ctrl+K 表示:刪除本行
2、調(diào)試快捷鍵
Command + alt + y 到下個(gè)斷點(diǎn)運(yùn)行,如果沒有下個(gè)斷點(diǎn)則一直運(yùn)行
F6單步調(diào)試(通常需要按住Fn鍵)
F7進(jìn)入函數(shù)(通常需要按住Fn鍵)
F8跳出函數(shù)(通常需要按住Fn鍵)
3、調(diào)試運(yùn)行,停止
Command + R 運(yùn)行。
Command + . 停止
4、自定義快捷鍵
1.設(shè)置展開當(dāng)前文件中屬性和方法列表,方便找到屬性和類,先看效果圖

設(shè)置 Xcode -> Preferences -> Key Bindings
