Xcode導(dǎo)航快捷鍵
Command + 1: 快速瀏覽代碼预茄、圖片以及用戶界面文件
Command + 0: 打開/關(guān)閉左邊導(dǎo)航欄:
Command + option + 0: 關(guān)閉/打開右邊工具欄:
Xcode搜索快捷鍵
Command + Shift + F:搜索導(dǎo)航器
Command + F: 文件內(nèi)搜索
Command + G: 搜索下一處
Shift + Command + G: 搜索上一處
快速打開:Command + Shift + O
Xcode快捷工具
Command + Shift + 0 (Zero) :查看蘋果文檔和參考
Control + Command + ↑ / ↓ :程序中(OC) .h 和 .m文件間的快速切換
Command + Shift + K:清除工程
Command + Shift + J :展示當(dāng)前你在工程導(dǎo)航器中打開的文件
Command + J:展示小視圖框汁掠,切換焦點(diǎn) (配合上面的使用)
Command + Option + Shift + ←:收縮方法
Command + Option + Shift + →:展開方法
Command + Option + ←:收縮選中方法
Command + Option + →:展開選中方法
Command + Shift + y:展示LLDB調(diào)試欄
Command + Option + Enter / Command + Enter
Control + Command + ← : 回到 之前打開的頁(yè)面
Control + Command + → : 回到 之前打開的頁(yè)面
Control + Command + ↑ : 跳到頁(yè)面最上面
Control + Command + ↓ :跳到頁(yè)面最下面
Xcode編輯代碼快捷鍵
Command + [ :左縮進(jìn)
Command + ] :右縮進(jìn)
Control-F: 向右一個(gè)字符(forward)
Control-B:向左一個(gè)字符(backward)
Control-P: 前一行(previous)
Control-N: 后一行(next)
Control-A: 去行首
Control-E: 到行尾(end)
Control-T: 調(diào)換光標(biāo)兩邊的字符(transpose)
Control-D: 刪除光標(biāo)右側(cè)字符(delete)
Control-K: 刪除本行剩余的字符(kill)
Control- i : 格式化文本
Option+Command+[ :上移
Option+Command+]:下移